# The API date an application is pinned to

> The API date an application is pinned to: CustomDomain™ API reference in the applications group. Covers parameters, request body, responses and error codes.

Source: https://docs.customdomain.ai/docs/api-reference/applications/getApplicationApiVersion

## `GET https://api.customdomain.ai/v1/applications/{id}/api-version`

`version` is empty when the application is not pinned. Requires `app:read`.

### Authentication

`apiKey`, `managementKey`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes |  |

### Responses

| Status | Description |
| --- | --- |
| `200` | The pin. |
| `401` | Error envelope: {code, title, details, request_id}. |
| `403` | Error envelope: {code, title, details, request_id}. |
| `404` | Error envelope: {code, title, details, request_id}. |

### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `application_id` | string | no |  |
| `webhook_id` | string | no |  |
| `version` | string | yes | The pin; empty when none. |
| `effective` | string | yes |  |
| `current` | string | yes |  |
| `versions` | array of string | yes |  |

The full specification is served at `GET https://api.customdomain.ai/v1/openapi.json`.
