Sign up from an agent (no key)
curl --request POST \
--url https://api.westkite.com/v1/agent-signup \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"key_name": "Agent",
"client_name": "<string>"
}
'import requests
url = "https://api.westkite.com/v1/agent-signup"
payload = {
"email": "jsmith@example.com",
"key_name": "Agent",
"client_name": "<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({email: 'jsmith@example.com', key_name: 'Agent', client_name: '<string>'})
};
fetch('https://api.westkite.com/v1/agent-signup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"claim_token": "<string>",
"verification_uri": "<string>",
"user_code": "<string>",
"expires_in": 600,
"interval": 5
}{
"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
Sign up from an agent
Start sign-up for the person an agent works for, with no key. They approve it in their browser.
POST
/
agent-signup
Sign up from an agent (no key)
curl --request POST \
--url https://api.westkite.com/v1/agent-signup \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"key_name": "Agent",
"client_name": "<string>"
}
'import requests
url = "https://api.westkite.com/v1/agent-signup"
payload = {
"email": "jsmith@example.com",
"key_name": "Agent",
"client_name": "<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({email: 'jsmith@example.com', key_name: 'Agent', client_name: '<string>'})
};
fetch('https://api.westkite.com/v1/agent-signup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"claim_token": "<string>",
"verification_uri": "<string>",
"user_code": "<string>",
"expires_in": 600,
"interval": 5
}{
"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>"
}The Agent quickstart explains this endpoint in full.
Body
application/json
Response
Show the link and code; poll with the claim token.
https://app.westkite.com/developers/claim?code=<user_code>, with #login_hint=.