Custom headers

Retrieve tenant custom headers

get

Retrieve details of tenant custom headers.

Authorizations
Responses
200
OK
application/json
get
GET /api/tenant/custom_headers HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "add": [
    {
      "name": "text",
      "value": "text",
      "scope": "TRUNK"
    }
  ],
  "relay": [
    {
      "name": "text",
      "scope": "TRUNK"
    }
  ]
}

Update tenant custom headers

post

Update tenant custom headers.

Authorizations
Body

The added custom SIP headers and forwarded SIP headers in tenant scope.

Responses
200
OK
post
POST /api/tenant/custom_headers HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 98

{
  "add": [
    {
      "name": "text",
      "value": "text",
      "scope": "TRUNK"
    }
  ],
  "relay": [
    {
      "name": "text",
      "scope": "TRUNK"
    }
  ]
}

No content