Reception

Required product: Switch

Receptions are called main numbers in the interface.

  1. Properties
  2. Get all receptions
  3. Get a single reception by ID

Reception properties

Name Description
id
{"id":1}
Reception ID.
name
{"name":"Support"}
Reception name.
phone_number
{"phone_number":{"number":"4571999999"}}
Phone number associated with this reception.

Get all receptions

Return all receptions.

Request

GET /api/v2/receptions

Response

Status: 200 OK
{
  "receptions": [
    {
      "id": 1,
      "name": "Hovednummer",
      "phone_number": {
        "number": "4571999999"
      }
    }
  ]
}

Get a single reception by ID

Return specified reception.

Request

GET /api/v2/receptions/:id

Response

Status: 200 OK
{
  "reception": {
    "id": 1,
    "name": "Hovednummer",
    "phone_number": {
      "number": "4571999999"
    }
  }
}