Collect the agent's key
curl --request POST \
--url https://api.westkite.com/v1/agent-signup/token \
--header 'Content-Type: application/json' \
--data '
{
"claim_token": "<string>"
}
'import requests
url = "https://api.westkite.com/v1/agent-signup/token"
payload = { "claim_token": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({claim_token: '<string>'})
};
fetch('https://api.westkite.com/v1/agent-signup/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "pending"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}Account
Collect the agent's key
One poll of a sign-up. Every answer while it is not done is 200 with status: pending (keep polling), slow_down (polled faster than interval: add 5 s to your interval), expired (start again) or denied (the person said no; stop). approved carries the key, exactly once: keep it, it is not shown again here (it stays on the dashboard). A claim_token that is unknown or already collected is 400 invalid_request.
POST
/
agent-signup
/
token
Collect the agent's key
curl --request POST \
--url https://api.westkite.com/v1/agent-signup/token \
--header 'Content-Type: application/json' \
--data '
{
"claim_token": "<string>"
}
'import requests
url = "https://api.westkite.com/v1/agent-signup/token"
payload = { "claim_token": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({claim_token: '<string>'})
};
fetch('https://api.westkite.com/v1/agent-signup/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "pending"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}