Skip to main content
POST
/
api
/
v1
/
credentials
/
hetzner
Create a Hetzner API credential
import requests

url = "https://platform.ankra.app/api/v1/credentials/hetzner"

payload = {
    "name": "<string>",
    "api_token": "<string>"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "success": true,
  "errors": []
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Body

application/json
name
string
required
api_token
string
required

Response

Credential created successfully

success
boolean
default:true
errors
ResourceError · object[]