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.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjo1MSwiZXhwIjoxNzc2MzY1MjA4fQ.OcU7aYiRraOWflwt5IAfNw-bx3owsUpAP1mWkJPKBmk
Host: example.org
Cookie: 

Route

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

Body

{"data":{"type":"phone-systems-sessions","attributes":{"service":"5ede65aa-6a81-4a2d-8580-df8d462b107f"}}}

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/"cb4452d5ba8043413ed3bd0f3831fd15"
cache-control: max-age=0, private, must-revalidate
x-request-id: ba9f42c6-ade3-42f5-8581-ded363e331ad
x-runtime: 0.022895
content-length: 215

Status

201 Created

Body

{
  "data": {
    "id": "4764c6f7-921b-4441-b8c4-bb452a768d81",
    "type": "phone-systems-sessions",
    "attributes": {
      "phone-systems-url": "https://sandbox.phone.systems/authfrom=rspec&redirect_to=phone_systems&token=asdf.asdf.asdf"
    }
  }
}