Phone Systems session API

create new phone.systems session

POST /api/rest/customer/v1/phone-systems-sessions

Parameters

Name Description
data[type] Data type
data[attributes][service] Service

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjo1MiwiZXhwIjoxNzg0MzgwODU3fQ.Du2x5X6vz5kOe-WIPSodYlqSI05RzZrSSUf3vghWGHQ
Host: example.org
Cookie: 

Route

POST /api/rest/customer/v1/phone-systems-sessions

Body

{"data":{"type":"phone-systems-sessions","attributes":{"service":"1efae3b7-4002-4d86-a36d-147bcc8921da"}}}

Response

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
vary: Accept
etag: W/"634cced1fa4d5fa849ff77caa739e9a5"
cache-control: max-age=0, private, must-revalidate
x-request-id: 3eaf1fb5-0c38-4401-8541-1cee80ee09f8
x-runtime: 0.025917
content-length: 215

Status

201 Created

Body

{
  "data": {
    "id": "808370d4-4a68-4293-9636-8b97e6a2a6ca",
    "type": "phone-systems-sessions",
    "attributes": {
      "phone-systems-url": "https://sandbox.phone.systems/authfrom=rspec&redirect_to=phone_systems&token=asdf.asdf.asdf"
    }
  }
}