Auth
Create Challenge
Generates a one-time authentication challenge for granting API access to the user's vault. Upon providing a valid app_name, the server issues a unique challenge_id and displays a 4-digit code within the Anytype Desktop. The challenge_id must then be used with the /v1/auth/api_keys endpoint to solve the challenge and retrieve an authentication token. This mechanism ensures that only trusted applications and authorized users gain access.
post/v1/auth/challenges
Headers
Anytype-Versionstring required
The version of the API to use
Request body
Example request
{
"app_name": "anytype_mcp"
}Response
The challenge ID associated with the started challenge
Example response
{
"challenge_id": "67647f5ecda913e9a2e11b26"
}