Skip to main content
POST
/
gateway
Create a new gateway
curl --request POST \
  --url https://api.quiva.ai/gateway \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My API Gateway",
  "description": "Gateway for my service APIs",
  "active": true
}
'
{
  "body": {
    "name": "My API Gateway",
    "description": "Gateway for my service APIs",
    "url": "https://abc123.quiva.ai",
    "subject": "ms.gateway.abcdef123456.gateway",
    "active": true,
    "timeout": 30000,
    "limit": {
      "request": 10000,
      "time": 1000
    },
    "modified": 1713531894,
    "type": "created"
  },
  "metadata": {
    "subject": "ms.gateway.abcdef123456.gateway"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Name of the gateway

Example:

"My API Gateway"

active
boolean
default:true
required

Whether the gateway is active

Example:

true

description
string

Description of the gateway

Example:

"Gateway for my service APIs"

middleware
object[]

List of middleware to be applied to the gateway

limit
object
timeout
integer
default:30000

Timeout in milliseconds for gateway requests

Example:

30000

Response

Gateway created successfully

body
object
metadata
object