---
title: "POST /v1alpha1/auth/token"
method: POST
path: "/v1alpha1/auth/token"
tags: ["AuthService"]
---

# POST /v1alpha1/auth/token

`POST /v1alpha1/auth/token`

## Request

- Base URL: `http://localhost:4000`
- URL: `http://localhost:4000/v1alpha1/auth/token`
- Auth: HTTP bearer and API key in header `x-id-api-key`

Request token for an Agent or MCP Server

## Request body

- TokenRequest
  - `authorizationCode` string: Pass the code received from the authorization endpoint.

## Response `200`

OK

- TokenResponse
  - `accessToken` string: The access token issued to the Agent or MCP Server.

## Other responses

- `default`: Default error response

---

[API](https://skmtc.dev/agntcy/apis/agntcy-identity-service-api.md) - [All operations](https://skmtc.dev/agntcy/apis/agntcy-identity-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agntcy/apis/agntcy-identity-service-api/revisions/1dc8f8328648?raw)
