Write a playbook for a class of business
curl --request POST \
--url https://api.usenexio.com/runs/playbook \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"naics_code": "<string>",
"additional_naics_codes": [
"<string>"
],
"requested_class": "<string>"
}
'import requests
url = "https://api.usenexio.com/runs/playbook"
payload = {
"naics_code": "<string>",
"additional_naics_codes": ["<string>"],
"requested_class": "<string>"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
naics_code: '<string>',
additional_naics_codes: ['<string>'],
requested_class: '<string>'
})
};
fetch('https://api.usenexio.com/runs/playbook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"output": "<unknown>",
"sources": "<unknown>"
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}Runs
Write a playbook for a class of business
Write a playbook for a class of business
POST
/
runs
/
playbook
Write a playbook for a class of business
curl --request POST \
--url https://api.usenexio.com/runs/playbook \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"naics_code": "<string>",
"additional_naics_codes": [
"<string>"
],
"requested_class": "<string>"
}
'import requests
url = "https://api.usenexio.com/runs/playbook"
payload = {
"naics_code": "<string>",
"additional_naics_codes": ["<string>"],
"requested_class": "<string>"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
naics_code: '<string>',
additional_naics_codes: ['<string>'],
requested_class: '<string>'
})
};
fetch('https://api.usenexio.com/runs/playbook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"output": "<unknown>",
"sources": "<unknown>"
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}{
"code": "INVALID_ARGUMENT",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"details": "<unknown>",
"errors": [
{
"message": "<string>",
"location": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"reason": "<string>",
"retry_after_ms": 123
}Headers
The caller's remaining budget for this request, in whole milliseconds (1 to 10 digits, greater than zero), relative to receipt. The engine stops work at the shorter of this and the route's own budget, and answers 504 request_timeout when it expires. A value above the route budget is capped to it; a malformed value is ignored.
Body
application/json