# Retrieve a specific function deployment

> Retrieve a specific function deployment.

GET

/functions/{function\_api\_name}/deployments/{deployment\_id}/

Retrieves details for a function deployment by ID.

#### Helpful resources

-   [Get started with functions](https://developer.rippling.com/documentation/rippling-platform/developer/functions/getting-started)
-   [Create and manage functions](https://developer.rippling.com/documentation/rest-api/guides/functions)

### Required Scopes

-   functions.read
    
-   functions.read-write
    

### Request

Path Parameters

**function\_api\_name** string required

The API name of the function.

**deployment\_id** string required

The unique identifier of the deployment.

## Responses

-   200
-   400
-   401
-   403
-   404

Successful response

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**id** string required

The ID of the deployment

**external\_id** string

The external ID of the deployment

**function\_id** string

The ID of the function that this deployment is associated with

**function\_api\_name** string

The API name of the function that this deployment is associated with

**function\_version\_id** string

The ID of the version that this deployment is associated with

**function\_version\_human\_friendly\_id** integer

The human friendly ID of version that this deployment is associated with

**code** string

The code for the deployment. Null when the deployment's function comes from a managed package install.

**dependencies** object

The dependencies of the deployment. Null when the deployment's function comes from a managed package install.

**allowed\_domains** string\[\]

Domains that function runs from this deployment are allowed to access. Null when the deployment's function comes from a managed package install.

**runtime** string

The runtime for the deployment

**options** object

Additional, runtime-specific options for the deployment. Null when the deployment's function comes from a managed package install.

**io\_contract** object

Input and output JSON Schema contracts for the deployment

**status** string

The status of the deployment

**created\_at** string required

The creation date of the deployment

**updated\_at** string required

The last updated date of the deployment

```json
{
  "id": "string",
  "external_id": "string",
  "function_id": "string",
  "function_api_name": "string",
  "function_version_id": "string",
  "function_version_human_friendly_id": 0,
  "code": "string",
  "dependencies": {},
  "allowed_domains": [
    "string"
  ],
  "runtime": "string",
  "options": {},
  "io_contract": {},
  "status": "string",
  "created_at": "string",
  "updated_at": "string"
}
```

The request failed validation. The response body describes the error.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**detail** string

A human-readable explanation of why the request failed.

```json
{
  "detail": "string"
}
```

Authentication is required or the supplied credentials are invalid.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

-   Matches one or more of these formats:
    
    1.  **Format 1**
        
        **ok** boolean required
        
        Whether the request succeeded. Always false for an authentication error.
        
        **Possible values:** \[false\]
        
        **error** string required
        
        A human-readable explanation of why authentication failed.
        
    2.  **Format 2**
        
        **detail** string required
        
        A human-readable explanation of the authentication error.
        

**Format 1**

```json
{
  "ok": false,
  "error": "Incorrect authentication credentials."
}
```

**Format 2**

```json
{
  "detail": "string"
}
```

The caller is not authorized to perform this action.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**detail** string

A human-readable explanation of why the request failed.

```json
{
  "detail": "string"
}
```

The requested resource was not found.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**detail** string

A human-readable explanation of why the request failed.

```json
{
  "detail": "string"
}
```

Source: https://developer.rippling.com/documentation/rest-api/reference/get-functions-function-api-name-deployments

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
