> ## 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.

# createApplication

> Creates an application with its own credentials for one destination version. Read its `clientId`, `clientSecret` or `accessToken` to call the version's API.



**mutation** `createApplication(input: CreateApplicationInput!): CreateApplicationPayload!`

## Arguments

**`input`**: `CreateApplicationInput!` (required)

## Returns

`CreateApplicationPayload!`

**`application`**: `Application`

---

**`errors`**: `[CreateApplicationError!]`

## Examples

```graphql Mutation
mutation CreateApplication($input: CreateApplicationInput!) {
  createApplication(input: $input) {
    application {
      accessToken {
        expiresIn
        token
      }
      apiVersionId
      clientId
      clientSecret
      createdAt
      createdBy
    }
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "apiVersionId": "id",
    "destinationId": "id",
    "displayName": "string",
    "tags": [
      "string"
    ]
  }
}
```

```json Response
{
  "data": {
    "createApplication": {
      "application": {
        "accessToken": {
          "expiresIn": 1,
          "token": "string"
        },
        "apiVersionId": "value",
        "clientId": "string",
        "clientSecret": "string",
        "createdAt": "value",
        "createdBy": "value"
      },
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ]
    }
  }
}
```


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