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.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjo1MiwiZXhwIjoxNzg2MzU5NzYzfQ.jZC0_kvJ-CdbEXVtsSevco0u7PYZjMAjbcTlJzdhKy4
Host: example.org
Cookie: 

Route

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

Body

{"data":{"type":"phone-systems-sessions","attributes":{"service":"40bf368e-fa40-40b8-8ed7-025c3fb0f0ce"}}}

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/"320ddeec5e46a19b04a404fa26b897e7"
cache-control: max-age=0, private, must-revalidate
x-request-id: 032f58a8-f1c3-4a6d-8135-89d7f2b54878
x-runtime: 0.023022
content-length: 215

Status

201 Created

Body

{
  "data": {
    "id": "00d74dab-1e57-4c85-b0f2-dfa64489b9bb",
    "type": "phone-systems-sessions",
    "attributes": {
      "phone-systems-url": "https://sandbox.phone.systems/authfrom=rspec&redirect_to=phone_systems&token=asdf.asdf.asdf"
    }
  }
}