Add a contact to the organization.
Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
To use this endpoint, select Write Alert Contacts under the Setup & Administration category when creating or editing an API token. Learn More.
curl --request POST \
--url https://api.samsara.com/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jane.jones@yahoo.com",
"firstName": "Jane",
"lastName": "Jones",
"phone": "111-222-3344"
}
'{
"data": {
"email": "jane.jones@yahoo.com",
"firstName": "Jane",
"id": "22408",
"lastName": "Jones",
"phone": "111-222-3344"
}
}Documentation Index
Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The contact create parameters.
Information for adding a notification contact for alerts.
Email address of the contact.
255"jane.jones@yahoo.com"
First name of the contact.
255"Jane"
Last name of the contact.
255"Jones"
Phone number of the contact.
255"111-222-3344"
Contact was successfully added.
A single contact.
Information about a notification contact for alerts.
Show child attributes
curl --request POST \
--url https://api.samsara.com/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jane.jones@yahoo.com",
"firstName": "Jane",
"lastName": "Jones",
"phone": "111-222-3344"
}
'{
"data": {
"email": "jane.jones@yahoo.com",
"firstName": "Jane",
"id": "22408",
"lastName": "Jones",
"phone": "111-222-3344"
}
}