Obtain a partner access token
curl --request POST \
--url https://api.expedite.now/api/partners/v1/token \
--header 'Content-Type: application/json' \
--data '
{
"grant_type": "client_credentials",
"client_id": "example_client_id",
"client_secret": "example_client_secret"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
grant_type: 'client_credentials',
client_id: 'example_client_id',
client_secret: 'example_client_secret'
})
};
fetch('https://api.expedite.now/api/partners/v1/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.expedite.now/api/partners/v1/token"
payload = {
"grant_type": "client_credentials",
"client_id": "example_client_id",
"client_secret": "example_client_secret"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"access_token": "exp_partner_example_token",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "incorporations:create incorporations:read incorporation_documents:read webhooks:manage"
}{
"error": {
"code": "BAD_REQUEST",
"message": "Request validation failed",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Partner authentication failed",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Required permission is missing",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "CONFLICT",
"message": "The request conflicts with the current resource state",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"message": "Request limit reached; retry later",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}Authentication
Get an access token
Use a registered sandbox or production client. Token environment is fixed by that client.
POST
/
token
Obtain a partner access token
curl --request POST \
--url https://api.expedite.now/api/partners/v1/token \
--header 'Content-Type: application/json' \
--data '
{
"grant_type": "client_credentials",
"client_id": "example_client_id",
"client_secret": "example_client_secret"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
grant_type: 'client_credentials',
client_id: 'example_client_id',
client_secret: 'example_client_secret'
})
};
fetch('https://api.expedite.now/api/partners/v1/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.expedite.now/api/partners/v1/token"
payload = {
"grant_type": "client_credentials",
"client_id": "example_client_id",
"client_secret": "example_client_secret"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"access_token": "exp_partner_example_token",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "incorporations:create incorporations:read incorporation_documents:read webhooks:manage"
}{
"error": {
"code": "BAD_REQUEST",
"message": "Request validation failed",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Partner authentication failed",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Required permission is missing",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "CONFLICT",
"message": "The request conflicts with the current resource state",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"message": "Request limit reached; retry later",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}Body
application/jsonapplication/x-www-form-urlencoded

