---
title: "Confirm registration & mint a scoped Bearer token"
method: POST
path: "/api/v1/agent/register/confirm"
---

# Confirm registration & mint a scoped Bearer token

`POST /api/v1/agent/register/confirm`

## Request

- Base URL: `https://allmcps.com`
- URL: `https://allmcps.com/api/v1/agent/register/confirm`
- Auth: none declared

Step 2 of agent auth: exchanges the 6-digit code for an `amcp_...` Bearer token carrying the scopes requested in Step 1. Public, unauthenticated.

## Request body

- object
  - `email` string, email, required
  - `code` string, required

## Response `200`

Bearer token minted.

- object
  - `success` boolean
  - `message` string
  - `token` string: Opaque `amcp_...` bearer token — shown once, store it securely.
  - `tokenType` 'Bearer'
  - `scopes` string[]
  - `expiresAt` string, date-time
  - `docs` object
    - `claim` string, uri
    - `revoke` string, uri
    - `authSpec` string, uri

## Other responses

- `400`: Missing/expired/incorrect code, or too many attempts.

---

[API](https://skmtc.dev/allmcps/apis/allmcps-directory-api.md) · [All operations](https://skmtc.dev/allmcps/apis/allmcps-directory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/allmcps/apis/allmcps-directory-api/revisions/0a42338f0f1e?raw)
