Skip to main content
POST
/
secrets
/
validate_token
Validate a provider token
curl --request POST \
  --url https://api.akua.dev/v1/secrets/validate_token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "value": "<string>"
}
'
{
  "valid": true,
  "error": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.akua.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

workspace API token (sk_akua_...) or OAuth2 JWT. Create tokens at https://akua.dev/developers/api-tokens

Body

application/json
provider
enum<string>
required

Cloud provider to validate the token against.

Available options:
hcloud
value
string
required

The provider API token to probe. Consumed, never stored.

Minimum string length: 1

Response

Validation result

valid
boolean
required

Whether the token authenticated successfully.

error
string

Human-readable reason when valid is false.