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.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjo1MiwiZXhwIjoxNzgxMjc4ODY5fQ.hWOG0JObyM6yRyDSqSgAuWPfPFuFzEuI97YzxnEDUcw
Host: example.org
Cookie: 

Route

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

Body

{"data":{"type":"phone-systems-sessions","attributes":{"service":"2cf0c8d8-1b7f-4ec4-85c3-f93b20ac1875"}}}

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/"cda0d63391e33df75e5854c0c62065be"
cache-control: max-age=0, private, must-revalidate
x-request-id: a58c6ab6-9a4e-4f77-b82c-d77fe00951f7
x-runtime: 0.021275
content-length: 215

Status

201 Created

Body

{
  "data": {
    "id": "cb0a94d8-5dea-4140-86a4-326c02fde8ae",
    "type": "phone-systems-sessions",
    "attributes": {
      "phone-systems-url": "https://sandbox.phone.systems/authfrom=rspec&redirect_to=phone_systems&token=asdf.asdf.asdf"
    }
  }
}