v1

latestOpenAPI 3.1.0Any Source Available License 1.02026-07-1736102200.0 KB
Auth

Create API Key

After receiving a challenge_id from the /v1/auth/challenges endpoint, the client calls this endpoint to provide the corresponding 4-digit code along with the challenge ID. The endpoint verifies that the challenge solution is correct and, if it is, returns an api_key. This endpoint is central to the authentication process, as it validates the user's identity and issues a key that can be used for further interactions with the API.

post/v1/auth/api_keys

Headers

Anytype-Versionstring required

The version of the API to use

Request body

challenge_idstring

The challenge id associated with the previously displayed code

codestring

The 4-digit code retrieved from Anytype Desktop app

Example request

{
  "challenge_id": "67647f5ecda913e9a2e11b26",
  "code": "1234"
}

Response

The API key that can be used in the Authorization header for subsequent requests

api_keystring

The api key used to authenticate requests

Example response

{
  "api_key": "zhSG/zQRmgADyilWPtgdnfo1qD60oK02/SVgi1GaFt6="
}
All 36 operations