cURL
curl --request POST \ --url https://app.nex.ai/api/developers/v1/objects/{slug} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "attributes": { "name": { "first_name": "John", "last_name": "Doe" }, "name (alternative)": "John Doe", "email_addresses": [ "[email protected]" ], "phone_number": { "country_code": 1, "number": "5551234567" }, "job_title": "Software Engineer", "location": { "street": "123 Main St", "city": "Boston", "region": "MA", "postal_code": "02134", "country": "US" } } } '
{ "id": "32710180831586561", "object_id": "32710180831586560", "type": "person", "workspace_id": "32710180831586559", "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T10:30:00Z", "attributes": { "name": { "first_name": "John", "last_name": "Doe" }, "email_addresses": [ "[email protected]" ], "phone_number": { "country_code": 1, "number": "5551234567" }, "job_title": "Software Engineer", "location": { "street": "123 Main St", "city": "Boston", "region": "MA", "postal_code": "02134", "country": "US" } } }
Creates a new record for a specific object type with the provided attributes
API key for authentication (format: "Bearer YOUR_API_KEY")
Object slug (e.g., 'person', 'company')
Record attributes
Show child attributes
Can be a string (e.g., 'John Doe') or an object (e.g., {'first_name': 'John', 'last_name': 'Doe'} for Person objects).
Created record with all attributes