Skip to main content
POST
/
v1
/
gate
/
services
Create a Gate service for the authenticated organization
curl --request POST \
  --url https://api.tripwirejs.com/v1/gate/services \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "gsvc_0123456789abcdefghjkmnpqrs",
  "name": "Acme Growth Workspace",
  "description": "203.0.113.10",
  "website": "https://app.acme.co/signup",
  "webhook_url": "https://app.acme.co/signup"
}
'
{
  "data": {
    "object": "gate_service",
    "id": "gsvc_0123456789abcdefghjkmnpqrs",
    "status": "active",
    "discoverable": true,
    "name": "Acme Growth Workspace",
    "description": "203.0.113.10",
    "website": "https://app.acme.co/signup",
    "dashboard_login_url": "https://app.acme.co/signup",
    "webhook_url": "https://app.acme.co/signup",
    "env_vars": [
      {
        "name": "Acme Growth Workspace",
        "key": "TRIPWIRE_PUBLISHABLE_KEY",
        "secret": true
      }
    ],
    "docs_url": "https://app.acme.co/signup",
    "sdks": [
      {
        "label": "Chrome",
        "install": "npm install @tripwire/server-node",
        "url": "https://app.acme.co/signup"
      }
    ],
    "branding": {
      "logo_url": "https://app.acme.co/signup",
      "primary_color": "#111827",
      "secondary_color": "#60a5fa",
      "ascii_art": "TRIPWIRE",
      "verified": true
    },
    "consent": {
      "terms_url": "https://app.acme.co/signup",
      "privacy_url": "https://app.acme.co/signup"
    },
    "created_at": "2026-03-24T20:00:00.000Z",
    "updated_at": "2026-03-24T20:00:05.000Z"
  },
  "meta": {
    "request_id": "req_cf147349a4134208aebb8c70e25fb7e1"
  }
}

Authorizations

Authorization
string
header
required

Send Authorization: Bearer . Gate business endpoints require sk_* secret keys. Gate workflow endpoints use gate-native bearer tokens such as gtpoll_* or agt_* where documented.

Body

application/json
id
string
required

Canonical Gate service slug used by the public registry and by npx signup . Lowercase letters, numbers, dashes, and underscores only; must start and end with a letter or number.

Required string length: 3 - 32
Pattern: ^[a-z0-9](?:[a-z0-9_-]{1,30}[a-z0-9])$
Example:

"gsvc_0123456789abcdefghjkmnpqrs"

name
string
required
Example:

"Acme Growth Workspace"

description
string
required
Example:

"203.0.113.10"

website
string<uri>
required
Example:

"https://app.acme.co/signup"

webhook_url
string<uri>
required
Example:

"https://app.acme.co/signup"

discoverable
boolean
Example:

true

dashboard_login_url
string<uri>
Example:

"https://app.acme.co/signup"

webhook_secret
string

If provided, must be at least 32 characters. Omit on create to let Gate generate one.

Minimum string length: 32
Example:

"whsec_0123456789abcdef0123456789abcdef"

env_vars
object[]
Example:
[
{
"name": "Acme Growth Workspace",
"key": "TRIPWIRE_PUBLISHABLE_KEY",
"secret": true
}
]
docs_url
string<uri>
Example:

"https://app.acme.co/signup"

sdks
object[]
Example:
[
{
"label": "Chrome",
"install": "npm install @tripwire/server-node",
"url": "https://app.acme.co/signup"
}
]
branding
object
Example:
{
"logo_url": "https://app.acme.co/signup",
"primary_color": "#111827",
"secondary_color": "#60a5fa",
"ascii_art": "TRIPWIRE",
"verified": true
}
Example:
{
"terms_url": "https://app.acme.co/signup",
"privacy_url": "https://app.acme.co/signup"
}

Response

Created Gate service.

data
object
required
Example:
{
"object": "gate_service",
"id": "gsvc_0123456789abcdefghjkmnpqrs",
"status": "active",
"discoverable": true,
"name": "Acme Growth Workspace",
"description": "203.0.113.10",
"website": "https://app.acme.co/signup",
"dashboard_login_url": "https://app.acme.co/signup",
"webhook_url": "https://app.acme.co/signup",
"env_vars": [
{
"name": "Acme Growth Workspace",
"key": "TRIPWIRE_PUBLISHABLE_KEY",
"secret": true
}
],
"docs_url": "https://app.acme.co/signup",
"sdks": [
{
"label": "Chrome",
"install": "npm install @tripwire/server-node",
"url": "https://app.acme.co/signup"
}
],
"branding": {
"logo_url": "https://app.acme.co/signup",
"primary_color": "#111827",
"secondary_color": "#60a5fa",
"ascii_art": "TRIPWIRE",
"verified": true
},
"consent": {
"terms_url": "https://app.acme.co/signup",
"privacy_url": "https://app.acme.co/signup"
},
"created_at": "2026-03-24T20:00:00.000Z",
"updated_at": "2026-03-24T20:00:05.000Z"
}
meta
object
required
Example:
{
"request_id": "req_cf147349a4134208aebb8c70e25fb7e1"
}