---
updatedAt: 2025-07-24T12:28:28.000Z
agentTools:
  projectIndex: https://docs.arena.im/llms.txt
---

# Create a New OAuth Token

Creates a new OAuth token using the provided API key token data.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/oauth/tokens": {
      "post": {
        "summary": "Create a New OAuth Token",
        "description": "Creates a new OAuth token using the provided API key token data.",
        "operationId": "TokenController_create",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApiKeyTokenDTO"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": ""
          }
        },
        "tags": [
          "authentication"
        ]
      }
    }
  },
  "info": {
    "title": "Customer's API",
    "description": "API to manage customer resources",
    "version": "3.0",
    "contact": {}
  },
  "tags": [
    {
      "name": "authentication",
      "description": "Endpoints for managing OAuth tokens and authentication flows"
    }
  ],
  "servers": [
    {
      "url": "https://api.arena.im/v3"
    }
  ],
  "components": {
    "schemas": {
      "CreateApiKeyTokenDTO": {
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "description": "Client ID"
          },
          "clientSecret": {
            "type": "string",
            "description": "Client Secret"
          },
          "name": {
            "type": "string",
            "description": "Used to identify tokens",
            "example": "Arena token for service-a"
          },
          "expires": {
            "type": "number",
            "description": "Unix timestamp for token expiration limited by 5 minutes. Default 5 minutes."
          }
        },
        "required": [
          "clientId",
          "clientSecret"
        ]
      }
    }
  }
}
```