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
Example request
{
"challenge_id": "67647f5ecda913e9a2e11b26",
"code": "1234"
}Response
The API key that can be used in the Authorization header for subsequent requests
Example response
{
"api_key": "zhSG/zQRmgADyilWPtgdnfo1qD60oK02/SVgi1GaFt6="
}