Create account (AI)
curl --request POST \
--url https://staging-api.usetyms.com/v1/adam/accounts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"prompt": "Create an invoice for ACME LLC for $250 for consulting, dated today, due in 14 days",
"process_type": "async"
}
'import requests
url = "https://staging-api.usetyms.com/v1/adam/accounts"
payload = {
"prompt": "Create an invoice for ACME LLC for $250 for consulting, dated today, due in 14 days",
"process_type": "async"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'Create an invoice for ACME LLC for $250 for consulting, dated today, due in 14 days',
process_type: 'async'
})
};
fetch('https://staging-api.usetyms.com/v1/adam/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Account creation request received and queued for processing",
"data": {
"process_type": "async",
"job_reference": "job_01HZXK8QEXAMPLE"
}
}{
"status": "success",
"message": "Account created successfully",
"data": {
"uuid": "acc-new-1",
"name": "Software Subscriptions",
"type": "expense"
}
}Chart of accounts
Create account (AI)
POST
/
accounts
Create account (AI)
curl --request POST \
--url https://staging-api.usetyms.com/v1/adam/accounts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"prompt": "Create an invoice for ACME LLC for $250 for consulting, dated today, due in 14 days",
"process_type": "async"
}
'import requests
url = "https://staging-api.usetyms.com/v1/adam/accounts"
payload = {
"prompt": "Create an invoice for ACME LLC for $250 for consulting, dated today, due in 14 days",
"process_type": "async"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'Create an invoice for ACME LLC for $250 for consulting, dated today, due in 14 days',
process_type: 'async'
})
};
fetch('https://staging-api.usetyms.com/v1/adam/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Account creation request received and queued for processing",
"data": {
"process_type": "async",
"job_reference": "job_01HZXK8QEXAMPLE"
}
}{
"status": "success",
"message": "Account created successfully",
"data": {
"uuid": "acc-new-1",
"name": "Software Subscriptions",
"type": "expense"
}
}Authorizations
Business secret tyms_sk_... for business-scoped routes. Partner secret for register-business and referred-business distributor routes.
Body
application/json
Hide child attributes
Hide child attributes
Content per type. For Base64, send raw bytes encoded as a string (no data:...;base64, prefix).
How file is encoded. Required on every attachment. Base64 payloads must use "type": "base64" explicitly — the API does not infer Base64 from the file string alone.
Available options:
base64, url, raw Filename with extension (recommended for type detection).
async (default) or direct.
Available options:
async, direct Response
AI job accepted or completed