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

# POST /v1alpha1/auth/authorize

`POST /v1alpha1/auth/authorize`

Authorize a request from an Agent or MCP Server

## Request body

- AuthorizeRequest
  - `resolverMetadataId` string — The resolver metadata id for which authorization is requested.
  - `toolName` string — The MCP Server tool name.
  - `userToken` string — The User context in the form of an id or access token. Mandatory for User Approval Flows.

## Response `200`

OK

- AuthorizeResponse
  - `authorizationCode` string — If authorization is successful, return a code to be used for the token endpoint.

## Other responses

- `default` — Default error response

---

[API](https://skmtc.net/agntcy/apis/agntcy-identity-service-api.md) · [All operations](https://skmtc.net/agntcy/apis/agntcy-identity-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agntcy/agntcy-identity-service-api/revisions/1dc8f8328648/schema)
