Skip to main content
POST
/
v1
/
credentials
/
validate
Validate a cloud provider token
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>"
}

Authorizations

Authorization
string
header
required

Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://cnap.tech/account/tokens

Body

application/json
provider
enum<string>
required
Available options:
hcloud
api_token
string
required
Minimum string length: 1

Response

Validation result

valid
boolean
required
error
string