curl --request POST \
--url https://api.cnap.tech/v1/credentials \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"api_token": "<string>"
}
'{
"id": "<string>"
}Registers a credential. The secret is stored securely and never persisted in CNAP directly.
curl --request POST \
--url https://api.cnap.tech/v1/credentials \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"api_token": "<string>"
}
'{
"id": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.cnap.tech/llms.txt
Use this file to discover all available pages before exploring further.
Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://cnap.tech/account/tokens