api:contacts

Contacts

GET /contacts

This method returns a list of contacts available to the current user and grouped by organization.

GET https://api.pyrus.com/v4/contacts
Show response

{
  "organizations": [
    {
      "organization_id": 2181,
      "name": "My Organiztion",
      "persons": [
        {
          "id": 1731,
          "first_name": "Bob",
          "last_name": "Smith",
          "email": "Bob.Smith@gmail.com"
        },
        {
          "id": 1733,
          "first_name": "John",
          "last_name": "Snow",
          "email": "John.Snow@gmail.com"
        },
        {
          "id": 1725,
          "first_name": "Jane",
          "last_name": "Doe",
          "email": "Jane.Doe@gmail.com"
        }
      ],
      "roles": [
        {
          "id": 1743,
          "name": "SomeRole",
          "member_ids": [
            1725,
            1733
          ]
        }
      ]
    }
  ]
}

Was this article helpful?

Yes, thanks! No, I have a question