Skip to main content
POST
/
api
/
gateways
POST /api/gateways
curl --request POST \
  --url https://api.sippet.ai/api/gateways \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "attributes": {
      "realm": "<string>",
      "username": "<string>",
      "from_domain": "<string>",
      "from_user": "<string>",
      "inbound_acl": [
        "<string>"
      ],
      "password": "<string>",
      "provider": "vonage",
      "proxy": "<string>",
      "register": true
    },
    "relationships": {},
    "type": "Gateway"
  }
}
'
{
  "data": {
    "id": "<string>",
    "type": "<string>",
    "attributes": {
      "inbound_acl": [
        "<string>"
      ],
      "name": "<string>",
      "realm": "<string>",
      "username": "<string>",
      "from_domain": "<string>",
      "from_user": "<string>",
      "password": "<string>",
      "provider": "vonage",
      "proxy": "<string>",
      "register": true
    },
    "relationships": {
      "organisation": {
        "data": {
          "id": "<string>",
          "type": "<string>",
          "meta": {}
        }
      }
    }
  },
  "included": [
    "<unknown>"
  ],
  "meta": {}
}

Authorizations

Authorization
string
header
required

JWT for bearer authentication

Query Parameters

include
string

Relationship paths to include in the response

Pattern: ^()(,())*$
fields
object

Limits the response fields to only those listed for each type

Example:
{
"Gateway": "id,name,provider,username,realm,proxy,register,from_domain,from_user,inbound_acl"
}

Body

application/vnd.api+json

Request body for the /gateways operation on Gateway resource

data
object
required

Response

Success

data
object

A "Resource object" representing a Gateway

included
any[]
meta
object