# OAuth application

> [!WARNING] Warning: Experimental API
> Please note that the Dashboard API is an experimental, prerelease API. This API method is considered unstable, and should be avoided in production environments and automations. Changes may occur at any time without warning.

An OAuth application that allows access to our API from third party services.

## Object payload

**`id`**

- Type: string
- Example: `"312"`

ID of access_token

**`type`**

- Type: string

Must be exactly `"oauth_application"`.

**`name`**

- Type: string
- Example: `"Netlify OAuth application"`

Name of application. For an MCP client that DatoCMS cannot verify, the name carries a warning and the host that identifies the client, e.g. "ChatGPT (unverified · evil.example)"

**`created_at`**

- Type: date-time
- Example: `"2018-11-20 12:06:49.803166"`

Date of token creation

**`site_access_mode`**

- Type: enum
- Example: `"all"`

Whether the application can access all projects or only selected ones

<details>
<summary>Show enum values</summary>

**`all`**

The application can access all projects

**`selected`**

The application can only access selected projects

</details>

**`read_sites_permission_cap`**

- Type: enum
- Example: `"unrestricted"`

The level of access the account granted to the application, on top of its own permissions. Read-only: it is picked when authorizing the application, and changing it means authorizing the application again

<details>
<summary>Show enum values</summary>

**`content_view_only`**

The application can only read content and media

**`content_only`**

The application can read and edit content and media, but not schema, settings, users or API tokens

**`unrestricted`**

The application can do anything the account can do

</details>

**`mcp_client`**

- Type: object, null

Details of an MCP client application (for example ChatGPT, Claude or Cursor), which has its own projects and level of access. Null for any other application

<details>
<summary>Show object format</summary>

**`raw_name`**

- Type: string
- Example: `"ChatGPT"`

Name of the MCP client, without the note that name adds when DatoCMS cannot verify the client

**`registration`**

- Type: enum
- Example: `"cimd"`

How the MCP client obtained its application

<details>
<summary>Show enum values</summary>

**`cimd`**

The MCP client identifies itself with a client ID metadata document

**`dcr`**

The MCP client registered itself dynamically (RFC 7591)

</details>

**`trust_level`**

- Type: enum
- Example: `"verified"`

How much DatoCMS trusts the identity of the MCP client

<details>
<summary>Show enum values</summary>

**`verified`**

DatoCMS verifies who the MCP client is

**`local`**

DatoCMS cannot verify the MCP client, but the client receives access only on the account's computer (a loopback address or a known native app)

**`unverified`**

DatoCMS cannot verify the MCP client, and the client can receive access on another host

</details>

</details>

**`granted_sites`**

- Type: Array<[ResourceLinkage\<"site"\>](http://localhost:8080/docs/content-management-api/resources/site.md)>

Projects the application has been granted access to (only relevant when site_access_mode is 'selected')

## Available endpoints

-   [List all authorized applications](https://www.datocms.com/docs/dashboard-api/resources/oauth-application/instances.md)
-   [Update site access settings for an authorized application](https://www.datocms.com/docs/dashboard-api/resources/oauth-application/update.md)
-   [Delete an authorized application](https://www.datocms.com/docs/dashboard-api/resources/oauth-application/destroy.md)

## Related content in "Dashboard API"

- [Account](https://www.datocms.com/docs/dashboard-api/resources/account.md)
- [Session](https://www.datocms.com/docs/dashboard-api/resources/session.md)
- [OAuth application](https://www.datocms.com/docs/dashboard-api/resources/oauth-application.md)
- [List all authorized applications](https://www.datocms.com/docs/dashboard-api/resources/oauth-application/instances.md)
- [Update site access settings for an authorized application](https://www.datocms.com/docs/dashboard-api/resources/oauth-application/update.md)
- [Delete an authorized application](https://www.datocms.com/docs/dashboard-api/resources/oauth-application/destroy.md)
- [Organization](https://www.datocms.com/docs/dashboard-api/resources/organization.md)
- [Organization role](https://www.datocms.com/docs/dashboard-api/resources/organization-role.md)
- [Organization invitation](https://www.datocms.com/docs/dashboard-api/resources/organization-invitation.md)
- [Organization membership](https://www.datocms.com/docs/dashboard-api/resources/organization-membership.md)
- [Organization mandate request](https://www.datocms.com/docs/dashboard-api/resources/organization-mandate-request.md)
- [Organization mandate](https://www.datocms.com/docs/dashboard-api/resources/organization-mandate.md)
- [Project](https://www.datocms.com/docs/dashboard-api/resources/site.md)
- [Site invitation](https://www.datocms.com/docs/dashboard-api/resources/site-invitation.md)
- [Site transfer request](https://www.datocms.com/docs/dashboard-api/resources/site-transfer.md)
- [Account subscription](https://www.datocms.com/docs/dashboard-api/resources/per-owner-pricing-subscription.md)
- [Plan](https://www.datocms.com/docs/dashboard-api/resources/per-owner-pricing-plan.md)
- [Billing profile](https://www.datocms.com/docs/dashboard-api/resources/per-owner-pricing-billing-profile.md)
- [Invoice](https://www.datocms.com/docs/dashboard-api/resources/invoice.md)
- [Billing profile](https://www.datocms.com/docs/dashboard-api/resources/resource-usage.md)
- [Daily Usage](https://www.datocms.com/docs/dashboard-api/resources/daily-usage.md)
- [Subscription limit](https://www.datocms.com/docs/dashboard-api/resources/subscription-limit.md)
- [Subscription feature](https://www.datocms.com/docs/dashboard-api/resources/subscription-feature.md)
- [Job result](https://www.datocms.com/docs/dashboard-api/resources/job-result.md)
- [Per-project subscription](https://www.datocms.com/docs/dashboard-api/resources/site-subscription.md)
- [Plan](https://www.datocms.com/docs/dashboard-api/resources/site-plan.md)
- [Billing profile](https://www.datocms.com/docs/dashboard-api/resources/per-site-pricing-billing-profile.md)