---
title: "Accept an invite and receive your own key for the shared workspace. PUBLIC: the token from the invite link is the credential, so no API key is needed. Single-use and valid for 7 days."
method: POST
path: "/v1/workspace/accept"
---

# Accept an invite and receive your own key for the shared workspace. PUBLIC: the token from the invite link is the credential, so no API key is needed. Single-use and valid for 7 days.

`POST /v1/workspace/accept`

## Request

- Base URL: `https://api.americantradesindex.com`
- URL: `https://api.americantradesindex.com/v1/workspace/accept`
- Auth: none declared

## Request body

- object
  - `token` string, required: the token from the invite URL

## Response `200`

{api_key, account_id, name, email}; the key is shown once

## Other responses

- `400`: the link is invalid, expired, or already used (one message for all three, by design)

---

[API](https://skmtc.dev/americantradesindex/apis/american-trades-index-api.md) · [All operations](https://skmtc.dev/americantradesindex/apis/american-trades-index-api/llms.txt) · [OpenAPI document](https://skmtc.dev/americantradesindex/apis/american-trades-index-api/revisions/5a9de4d8c76b?raw)
