curl -X POST https://api.guayaba.ai/contacts \ -H "Content-Type: application/json" \ -H "X-API-Key: gua_a1b2c3d4_your-api-key-here" \ -d '{ "phoneNumber": "+11234567890", "campaignId": "550e8400-e29b-41d4-a716-446655440000", "name": "John Doe", "customVariables": { "email": "john@example.com", "company": "Acme Inc" } }'
{ "success": true, "data": { "id": "d290f1ee-6c54-4b01-90e6-d701748f0851", "phoneNumber": "+11234567890", "name": "John Doe", "campaignId": "550e8400-e29b-41d4-a716-446655440000", "customVariables": { "email": "john@example.com", "company": "Acme Inc" }, "timezone": "America/New_York", "status": "active", "createdAt": "2026-01-15T10:30:00.000Z" } }
Create a new contact and associate them with a campaign.
+11234567890
America/New_York
customVariables.email
true
Show Contact fields
active