Public APIContacts
Create a contact
Authorization
bearerAuth AuthorizationBearer <token>
API key in the Authorization: Bearer <key> header.
Keys are created in the SMAO dashboard (Settings → API Keys).
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/contacts" \ -H "Content-Type: application/json" \ -d '{ "group_id": "65a1234567890abcdef01234", "phone_numbers": [ "+12025550123" ], "first_name": "Ada", "last_name": "Lovelace" }'{ "data": { "id": "string", "group_id": "string", "group_name": "string", "phone_numbers": [ "string" ], "first_name": "string", "last_name": "string", "email": "string", "company": "string", "gender": "string", "prompt": "string", "preferred_language": "string", "forwarding_id": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }}