> ## Documentation Index
> Fetch the complete documentation index at: https://nango-marcin-get-deployments-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a function deployment

> Returns the status and result of an asynchronous function deployment.

<Info>
  Requires an API key with the `environment:deploy` scope. [Learn more about API key scopes](/reference/backend/http-api/api-keys#scopes).
</Info>

Returns the status and result of an asynchronous function deployment.


## OpenAPI

````yaml GET /functions/deployments/{id}
openapi: 3.1.0
info:
  title: Nango API
  description: Nango API specs used to authorize & sync data with external APIs.
  version: 1.0.0
servers:
  - url: https://api.nango.dev
    description: Production server
  - url: http://localhost:3003
    description: Local server
security:
  - bearerAuth: []
externalDocs:
  url: https://nango.dev/docs/reference/backend/http-api/authentication
paths:
  /functions/deployments/{id}:
    get:
      summary: Get a function deployment
      description: Returns the status and result of an asynchronous function deployment.
      operationId: getFunctionDeployment
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successfully retrieved the deployment.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FunctionDeploymentResultResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    FunctionDeploymentResultResponse:
      type: object
      additionalProperties: false
      required:
        - id
        - status
        - integration_id
        - function_name
        - function_type
        - created_at
        - updated_at
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - waiting
            - running
            - success
            - failed
          description: The status of the function deployment.
        integration_id:
          type: string
          description: The integration ID (unique_key) that you created in Nango.
        function_name:
          type: string
          description: The sync or action function name.
        function_type:
          $ref: '#/components/schemas/RunnableFunctionType'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        started_at:
          type: string
          format: date-time
        completed_at:
          type: string
          format: date-time
        duration_ms:
          type: integer
          minimum: 0
        deployed:
          type: boolean
          description: Whether the deployment updated any functions.
        deployed_functions:
          type: array
          items:
            type: object
            additionalProperties: false
            required:
              - name
              - version
            properties:
              name:
                type: string
              version:
                type: string
          description: Functions updated by the deployment.
        output:
          type: string
          description: Deployment command output.
        error:
          type: object
          additionalProperties: false
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            payload:
              description: Optional error payload.
    RunnableFunctionType:
      type: string
      enum:
        - action
        - sync
    StdError:
      type: object
      additionalProperties: false
      properties:
        error:
          type: object
          additionalProperties: false
          required:
            - code
          properties:
            code:
              type: string
            message:
              type: string
            errors:
              type: array
              items:
                type: object
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StdError'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StdError'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StdError'
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StdError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: The secret key from your Nango environment.

````