curl --request POST \
--url https://api.cnap.tech/v1/credentials/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "hcloud",
"api_token": "<string>"
}
'{
"valid": true,
"error": "<string>"
}Tests a cloud provider API token without storing it. Use before creating a credential to verify the token works.
curl --request POST \
--url https://api.cnap.tech/v1/credentials/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "hcloud",
"api_token": "<string>"
}
'{
"valid": true,
"error": "<string>"
}Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://cnap.tech/account/tokens