API ReferenceContacts
Create contact
Create a new contact in an organization.
Authorization
sessionAuth AuthorizationBearer <token>
NextAuth session token
In: header
Path Parameters
orgId*string
Format
uuidRequest Body
application/json
phone*string
E.164 formatted phone number
email?string
Format
emailfirstName?string
lastName?string
company?string
jobTitle?string
timezone?string
preferredLanguage?string
Response Body
application/json
curl -X POST "https://platform.autophone.org/api/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/contacts" \ -H "Content-Type: application/json" \ -d '{ "phone": "+966501234567", "email": "john@example.com", "firstName": "John", "lastName": "Doe", "company": "Acme Corp" }'{
"contact": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
"phone": "string",
"email": "user@example.com",
"firstName": "string",
"lastName": "string",
"displayName": "string",
"company": "string",
"jobTitle": "string",
"source": "phone_inbound",
"status": "active",
"isCustomer": false,
"customerSince": "2019-08-24T14:15:22Z",
"timezone": "string",
"preferredLanguage": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}Empty
Empty
Empty