Create Contact
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/crm/contacts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"job_title": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"custom_fields": {},
"legal_basis": "<string>",
"email_opt_out": true
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/contacts"
payload = {
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"job_title": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"custom_fields": {},
"legal_basis": "<string>",
"email_opt_out": True
}
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>',
email: '<string>',
phone: '<string>',
job_title: '<string>',
organization_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
owner_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
custom_fields: {},
legal_basis: '<string>',
email_opt_out: true
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}CRM
Create Contact
Create a contact. Without organization_id, the company is found from the email domain.
POST
/
api
/
v1
/
crm
/
contacts
Create Contact
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/crm/contacts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"job_title": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"custom_fields": {},
"legal_basis": "<string>",
"email_opt_out": true
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/contacts"
payload = {
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"job_title": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"custom_fields": {},
"legal_basis": "<string>",
"email_opt_out": True
}
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>',
email: '<string>',
phone: '<string>',
job_title: '<string>',
organization_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
owner_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
custom_fields: {},
legal_basis: '<string>',
email_opt_out: true
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}Authorizations
Body
application/json
Company id; null detaches the contact
'', consent, contract or legitimate_interest
Response
201 - application/json
Created
The response is of type Response · object.
