cURL
curl --request PUT \ --url https://api.emailr.dev/v1/contacts/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "email": "contact@example.com", "first_name": "John", "last_name": "Doe", "subscribed": true, "metadata": { "source": "website", "plan": "pro" } } '
{ "id": "123e4567-e89b-12d3-a456-426614174000", "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "email": "jsmith@example.com", "first_name": "<string>", "last_name": "<string>", "metadata": {}, "subscribed": true, "unsubscribed_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
Update a contact’s information
API key authentication. Use your API key as the bearer token.
"123e4567-e89b-12d3-a456-426614174000"
"contact@example.com"
"John"
"Doe"
true
Show child attributes
{ "source": "website", "plan": "pro" }
Contact updated