Create Company
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/crm/companies \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"website": "<string>",
"industry": "<string>",
"size": "<string>",
"country": "<string>",
"lifecycle_stage": "<string>",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"csm_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"arr": "<string>",
"currency": "<string>",
"plan": "<string>",
"contract_start_date": "<string>",
"renewal_date": "<string>",
"custom_fields": {},
"email_domains": [
"<string>"
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/companies"
payload = {
"name": "<string>",
"description": "<string>",
"website": "<string>",
"industry": "<string>",
"size": "<string>",
"country": "<string>",
"lifecycle_stage": "<string>",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"csm_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"arr": "<string>",
"currency": "<string>",
"plan": "<string>",
"contract_start_date": "<string>",
"renewal_date": "<string>",
"custom_fields": {},
"email_domains": ["<string>"]
}
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({
name: '<string>',
description: '<string>',
website: '<string>',
industry: '<string>',
size: '<string>',
country: '<string>',
lifecycle_stage: '<string>',
owner_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
csm_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
arr: '<string>',
currency: '<string>',
plan: '<string>',
contract_start_date: '<string>',
renewal_date: '<string>',
custom_fields: {},
email_domains: ['<string>']
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/companies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}CRM
Create Company
Create a company. Users and contacts whose email is on one of its email domains join it.
POST
/
api
/
v1
/
crm
/
companies
Create Company
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/crm/companies \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"website": "<string>",
"industry": "<string>",
"size": "<string>",
"country": "<string>",
"lifecycle_stage": "<string>",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"csm_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"arr": "<string>",
"currency": "<string>",
"plan": "<string>",
"contract_start_date": "<string>",
"renewal_date": "<string>",
"custom_fields": {},
"email_domains": [
"<string>"
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/companies"
payload = {
"name": "<string>",
"description": "<string>",
"website": "<string>",
"industry": "<string>",
"size": "<string>",
"country": "<string>",
"lifecycle_stage": "<string>",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"csm_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"arr": "<string>",
"currency": "<string>",
"plan": "<string>",
"contract_start_date": "<string>",
"renewal_date": "<string>",
"custom_fields": {},
"email_domains": ["<string>"]
}
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({
name: '<string>',
description: '<string>',
website: '<string>',
industry: '<string>',
size: '<string>',
country: '<string>',
lifecycle_stage: '<string>',
owner_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
csm_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
arr: '<string>',
currency: '<string>',
plan: '<string>',
contract_start_date: '<string>',
renewal_date: '<string>',
custom_fields: {},
email_domains: ['<string>']
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/companies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}Authorizations
Body
application/json
'', 1-10, 11-50, 51-200, 201-500, 501-1000, 1001-5000 or 5000+
'', prospect, onboarding, customer or churned
Account owner (sales), an active staff user; null clears it
Customer success manager, an active staff user; null clears it
Annual recurring revenue; null clears it
ISO 4217 code of arr, e.g. EUR
YYYY-MM-DD
YYYY-MM-DD; renewal deals open ahead of it
Merged into the record; null value clears a key
Replaces the company's email domains
Response
201 - application/json
Created
The response is of type Response · object.
