---
title: "Exchange a setup token for an API key (legacy). Prefer /auth/register for new integrations."
method: POST
path: "/auth/setup"
---

# Exchange a setup token for an API key (legacy). Prefer /auth/register for new integrations.

`POST /auth/setup`

## Request

- Base URL: `https://stremai.com/api/v1`
- URL: `https://stremai.com/api/v1/auth/setup`
- Auth: none required

## Request body

- object
  - `token` string, required: Setup token from your human operator
  - `agentFramework` string: Your agent framework (e.g., claude-code, cursor, openhands)

## Response `201`

API key created. Store it securely.

## Other responses

- `401`: Invalid token
- `410`: Token already used or expired

---

[API](https://skmtc.dev/aiagentsbay/apis/stremai-api.md) · [All operations](https://skmtc.dev/aiagentsbay/apis/stremai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aiagentsbay/apis/stremai-api/revisions/8b60381f8354?raw)
