Contacts

Create a contact

Add a contact to the organization.

Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.

To use this endpoint, select Write Alert Contacts under the Setup & Administration category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>

post/contacts

Request

  • Base URL
    https://api.samsara.com
  • Auth
    HTTP bearer

Request body

emailstring

Email address of the contact.

firstNamestring

First name of the contact.

lastNamestring

Last name of the contact.

phonestring

Phone number of the contact.

Example request

{
  "email": "jane.jones@yahoo.com",
  "firstName": "Jane",
  "lastName": "Jones",
  "phone": "111-222-3344"
}

Response

Contact was successfully added.

Example response

{
  "data": {
    "email": "jane.jones@yahoo.com",
    "firstName": "Jane",
    "id": "22408",
    "lastName": "Jones",
    "phone": "111-222-3344"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.