> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# destinationById

> Gets a destination by its global id, archived ones included. Fails with `NotFoundError` when no destination has it.



**query** `destinationById(id: ID!): Destination!`

## Arguments

**`id`**: `ID!` (required)

Global id of the destination (`Destination.id`).

## Returns

`Destination!`

**`compatibilityMode`**: `IndexerVersion`

Indexer version an older destination stays compatible with. Null for destinations created through this API.

---

**`createdAt`**: `DateTime!`

When the destination was created (UTC).

---

**`createdBy`**: `UUID`

Id of the user or application that created the item. Null if not recorded.

---

**`defaultLanguage`**: `String`

Default language stored on the destination itself. Each version has its own in `ApiVersion.defaultLanguage`.

---

**`description`**: `String`

Free-text note about the destination.

---

**`displayName`**: `String!`

Name of the destination.

---

**`etag`**: `Etag`

Version tag for optimistic concurrency. Pass back the value you last read when you change the item.

---

**`id`**: `ID!`

Global id of the destination. `destinationById` and the destination mutations take it. The raw id is `safeName`.

---

**`isDeleted`**: `Boolean!`

True if the item is archived. Archived items are still returned unless you filter on `isDeleted`.

---

**`languages`**: `[KeyValuePairOfStringAndString!]!`

Language mappings stored on the destination itself. Each version has its own in `ApiVersion.languages`.

---

**`lastModified`**: `DateTime!`

When the destination last changed (UTC).

---

**`lastUpdatedBy`**: `UUID`

Id of the user or application that last changed the item. Null if not recorded.

---

**`safeName`**: `String!`

Raw id of the destination (e.g. `products`), used in its API's URL. Set when the destination is created; can't change.

---

**`tags`**: `[String!]!`

Labels for grouping and filtering destinations.

---

**`tenantId`**: `UUID!`

Id of the tenant that owns the item.

---

**`versions`**: `VersionsConnection`

Versions of the destination, in every state. Filter `where: { state: { nin: [NEW, DELETE_STARTED, DELETED] } }` for the versions whose API answers reads; the destination is live when there is at least one.

**Arguments:**

- `after`: `String` — Returns the elements in the list that come after the specified cursor.
- `before`: `String` — Returns the elements in the list that come before the specified cursor.
- `first`: `Int` — Returns the first _n_ elements from the list.
- `last`: `Int` — Returns the last _n_ elements from the list.
- `where`: `ApiVersionFilterInput`

## Examples

```graphql Query
query DestinationById($id: ID!) {
  destinationById(id: $id) {
    compatibilityMode
    createdAt
    createdBy
    defaultLanguage
    description
    displayName
  }
}
```

```json Variables
{
  "id": "id"
}
```

```json Response
{
  "data": {
    "destinationById": {
      "compatibilityMode": "V1",
      "createdAt": "value",
      "createdBy": "value",
      "defaultLanguage": "string",
      "description": "string",
      "displayName": "string"
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.