> This page is for Server SDKs.

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# get

> Retrieve a single call flow resource.

Retrieve a single call flow resource.

### Schema

```yaml
openapi: 3.1.0
info:
  title: API
  version: 1.0.0
paths:
  /api/fabric/resources/call_flows/{id}:
    get:
      operationId: subpackageCallFlows_get_call_flow
      summary: Get call flow
      description: >-
        Retrieves one Call Flow from your SignalWire project for viewing or
        editing. Use [List call
        flows](/docs/apis/rest/call-flows/list-call-flows) to find flows, or
        [Get SWML Script](/docs/apis/rest/swml-scripts/get-swml-script) for a
        directly authored SWML handler.


        #### Permissions


        The API token used to authenticate must have the following scope(s)
        enabled to make a successful request: _Voice_, _Messaging_, _Fax_, or
        _Video_.


        [Learn more about API scopes](/docs/platform/your-signalwire-api-space).
      tags:
        - subpackage_callFlows
      parameters:
        - name: id
          in: path
          description: Unique ID of a Call Flow.
          required: true
          schema:
            $ref: '#/components/schemas/uuid'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallFlowResponse'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode401'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode404'
        '500':
          description: An internal server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode500'
tags:
  - name: subpackage_callFlows
servers:
  - url: https://%7BYour_Space_Name%7D.signalwire.com
    description: SignalWire API
components:
  schemas:
    uuid:
      type: string
      format: uuid
      description: Universal Unique Identifier.
      title: uuid
    CallFlowResponseType:
      type: string
      enum:
        - call_flow
      description: Type of the Fabric Resource
      title: CallFlowResponseType
    CallFlowFlowData:
      type: object
      properties: {}
      description: >-
        Call Flow Builder state, stored as an opaque JSON object. Produced and
        consumed by the SignalWire Call Flow Builder UI; not used by SWML
        execution.
      title: CallFlowFlowData
    CallFlowRelayml:
      type: object
      properties: {}
      description: >-
        The calling SWML document this Call Flow executes. Uses [calling SWML
        methods](/docs/swml/reference/calling).
      title: CallFlowRelayml
    CallFlow:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/uuid'
          description: Unique ID of a Call Flow.
        title:
          type: string
          description: The name of the Call Flow
        flow_data:
          $ref: '#/components/schemas/CallFlowFlowData'
          description: >-
            Call Flow Builder state, stored as an opaque JSON object. Produced
            and consumed by the SignalWire Call Flow Builder UI; not used by
            SWML execution.
        relayml:
          $ref: '#/components/schemas/CallFlowRelayml'
          description: >-
            The calling SWML document this Call Flow executes. Uses [calling
            SWML methods](/docs/swml/reference/calling).
        document_version:
          type: integer
          description: >-
            The current revision of the call flow. Every update must increase
            this number.
      required:
        - id
        - title
      title: CallFlow
    CallFlowResponse:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/uuid'
          description: Unique ID of the Call Flow.
        project_id:
          $ref: '#/components/schemas/uuid'
          description: Unique ID of the Project.
        display_name:
          type: string
          description: Display name of the Call Flow Fabric Resource
        type:
          $ref: '#/components/schemas/CallFlowResponseType'
          description: Type of the Fabric Resource
        created_at:
          type: string
          format: date-time
          description: Date and time when the resource was created.
        updated_at:
          type: string
          format: date-time
          description: Date and time when the resource was updated.
        call_flow:
          $ref: '#/components/schemas/CallFlow'
          description: Call Flow data.
      required:
        - id
        - project_id
        - display_name
        - type
        - created_at
        - updated_at
        - call_flow
      title: CallFlowResponse
    TypesStatusCodesStatusCode401Error:
      type: string
      enum:
        - Unauthorized
      title: TypesStatusCodesStatusCode401Error
    Types.StatusCodes.StatusCode401:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/TypesStatusCodesStatusCode401Error'
      required:
        - error
      description: Access is unauthorized.
      title: Types.StatusCodes.StatusCode401
    TypesStatusCodesStatusCode404Error:
      type: string
      enum:
        - Not Found
      title: TypesStatusCodesStatusCode404Error
    Types.StatusCodes.StatusCode404:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/TypesStatusCodesStatusCode404Error'
      required:
        - error
      description: The server cannot find the requested resource.
      title: Types.StatusCodes.StatusCode404
    TypesStatusCodesStatusCode500Error:
      type: string
      enum:
        - Internal Server Error
      title: TypesStatusCodesStatusCode500Error
    Types.StatusCodes.StatusCode500:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/TypesStatusCodesStatusCode500Error'
      required:
        - error
      description: An internal server error occurred.
      title: Types.StatusCodes.StatusCode500

```

## **Response Example**

### Response (200)

```json
{
  "id": "993ed018-9e79-4e50-b97b-984bd5534095",
  "project_id": "1313fe58-5e14-4c11-bbe7-6fdfa11fe780",
  "display_name": "Welcome Call Flow",
  "type": "call_flow",
  "created_at": "2024-05-06T12:20:00Z",
  "updated_at": "2024-05-06T12:25:00Z",
  "call_flow": {
    "id": "993ed018-9e79-4e50-b97b-984bd5534095",
    "title": "Welcome Call Flow",
    "flow_data": {},
    "relayml": {
      "sections": {
        "main": [
          {
            "play": {
              "url": "https://cdn.signalwire.com/swml/audio.mp3"
            }
          }
        ]
      },
      "version": "1.0.0"
    },
    "document_version": 1
  }
}
```

## **Example**

```python {9}
from signalwire.rest import RestClient

client = RestClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
)

flow = client.fabric.call_flows.get("flow-id")
print(f"Call Flow: {flow['display_name']}, ID: {flow['id']}")
```