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.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjo1MiwiZXhwIjoxNzkyNjE5Mjc5fQ.bCotKlyam5Mp6Vqulw39-WcDC3a9eJQm4hbTkP-z7C0
Host: example.org
Cookie: 

Route

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

Body

{"data":{"type":"phone-systems-sessions","attributes":{"service":"18c09e95-45ae-42e2-9753-ac98f3f68262"}}}

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/"b06f8f1cde7ad28bf2c3b2aab351d909"
cache-control: max-age=0, private, must-revalidate
x-request-id: 7334c5cf-d625-4839-8509-3120a43885b4
x-runtime: 0.028486
content-length: 215

Status

201 Created

Body

{
  "data": {
    "id": "e5c3b4fc-3452-4ed7-98a2-2332743aa96d",
    "type": "phone-systems-sessions",
    "attributes": {
      "phone-systems-url": "https://sandbox.phone.systems/authfrom=rspec&redirect_to=phone_systems&token=asdf.asdf.asdf"
    }
  }
}