# OAuth Configuration

> This is a subset of the full specification, limited to the `oauth_configuration` schema.
>
> You can find the full specification here: /_bundle/docs/references/@2.18/rest-api/api.intercom.io.yaml

```yaml
openapi: 3.0.1
info:
  title: Intercom API
  version: '2.18'
  description: This is a subset of the full specification, limited to the `oauth_configuration` schema.
  contact:
    name: Intercom Developer Hub
    url: https://developers.intercom.com
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
servers:
  - url: https://api.intercom.io
    description: The production API server
  - url: https://api.eu.intercom.io
    description: The european API server
  - url: https://api.au.intercom.io
    description: The australian API server
security:
  - bearerAuth: []
paths: {}
components:
  schemas:
    oauth_configuration:
      title: OAuth Configuration
      type: object
      x-tags:
        - Auth Tokens
      description: |
        The OAuth client-credentials configuration Intercom uses to obtain and refresh an access token. Required when `token_type` is `oauth`. Must be omitted when `token_type` is `text`.
      properties:
        token_url:
          type: string
          description: The token endpoint Intercom exchanges the client credentials with. Must be an `https` URL.
          example: https://auth.fulfilment.example.com/oauth/token
        client_id:
          type: string
          description: The OAuth client ID.
          example: fulfilment-connector
        client_secret:
          type: string
          description: The OAuth client secret. Stored encrypted and never returned by any endpoint.
          example: 8f6e2b1a9c4d7e05
        scope:
          type: string
          description: An optional scope to request from the token endpoint.
          example: orders.read
        audience:
          type: string
          description: An optional audience to request from the token endpoint.
          example: https://api.fulfilment.example.com
        request_format:
          type: string
          description: The format the client credentials are sent in when requesting a token. Defaults to `json`.
          enum:
            - json
            - form_encoded
          example: json
      required:
        - token_url
        - client_id
        - client_secret
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
