S-Gate API reference

S-Gate API.

49 endpoints, 18 of them read-only. Every one is also a command in the orbit CLI, a method in the SDKs and a tool on the MCP server.

01

General

EndpointScopeParametersCLI · MCP tool
GET /sgate/overview
Numbers, this month's usage against your packs, and provider readiness
read—orbit sgate overview
sgate_overview
GET /sgate/usage
Messages this month and the last twelve, against your packs
read—orbit sgate usage
sgate_usage
02

numbers

EndpointScopeParametersCLI · MCP tool
GET /sgate/numbers
Your numbers and whether each sends and receives messages
read—orbit sgate numbers list
sgate_numbers_list
PATCH /sgate/numbers/{number}
Turn messaging on or off for a number; set its provider, 10DLC campaign and help reply
writenumber string
body: enabled boolean, provider string, campaign_id string, help_text string
orbit sgate numbers patch <number>
sgate_numbers_patch
03

providers

EndpointScopeParametersCLI · MCP tool
GET /sgate/providers
Providers that carry messages to phone numbers, and whether each is ready
read—orbit sgate providers list
sgate_providers_list
04

messages

EndpointScopeParametersCLI · MCP tool
GET /sgate/messages
Message log, newest first
read?q string
?number string
?direction in | out
?before integer
?limit integer
orbit sgate messages list
sgate_messages_list
POST /sgate/messages
Send a message from one of your numbers or a sender, as text or from a template, now or later (send_at)
writebody: from string, sender_id string, to* string[], body string, template_id string, variables object, lang string, category transactional | marketing, send_at string, client_ref stringorbit sgate messages send
sgate_messages_send
05

optouts

EndpointScopeParametersCLI · MCP tool
GET /sgate/optouts
People who replied STOP to one of your numbers (and START, afterwards)
read—orbit sgate optouts list
sgate_optouts_list
06

brands

EndpointScopeParametersCLI · MCP tool
GET /sgate/brands
Your US 10DLC brands
read—orbit sgate brands list
sgate_brands_list
POST /sgate/brands
Register a brand (entered as a draft)
writebody: legal_name string, display_name string, entity_type private | public | nonprofit | government | sole_proprietor, tax_id string, country string, vertical string, website string, contact_email string, status draft | submittedorbit sgate brands create
sgate_brands_create
PATCH /sgate/brands/{id}
Change a brand, or submit it for review
writeid string
body: legal_name string, display_name string, entity_type private | public | nonprofit | government | sole_proprietor, tax_id string, country string, vertical string, website string, contact_email string, status draft | submitted
orbit sgate brands patch <id>
sgate_brands_patch
DELETE /sgate/brands/{id}
Delete a brand without campaigns
writeid stringorbit sgate brands delete <id>
sgate_brands_delete
07

campaigns

EndpointScopeParametersCLI · MCP tool
GET /sgate/campaigns
Your US 10DLC campaigns
read—orbit sgate campaigns list
sgate_campaigns_list
POST /sgate/campaigns
Register a campaign under one of your brands (entered as a draft)
writebody: brand_id string, use_case mixed | account_notification | customer_care | delivery_notification | 2fa | marketing | low_volume | charity | polling, description string, message_flow string, samples string[], status draft | submittedorbit sgate campaigns create
sgate_campaigns_create
PATCH /sgate/campaigns/{id}
Change a campaign, or submit it for review
writeid string
body: brand_id string, use_case mixed | account_notification | customer_care | delivery_notification | 2fa | marketing | low_volume | charity | polling, description string, message_flow string, samples string[], status draft | submitted
orbit sgate campaigns patch <id>
sgate_campaigns_patch
DELETE /sgate/campaigns/{id}
Delete a campaign; numbers sending under it are detached
writeid stringorbit sgate campaigns delete <id>
sgate_campaigns_delete
08

senders

EndpointScopeParametersCLI · MCP tool
GET /sgate/senders
Your sender identities: names recipients see, and the numbers each sends from
read—orbit sgate senders list
sgate_senders_list
POST /sgate/senders
Add a sender identity (a name goes to review)
writebody: name string, description string, numbers string[]orbit sgate senders create
sgate_senders_create
PATCH /sgate/senders/{id}
Change a sender; a new name goes to review again
writeid string
body: name string, description string, numbers string[]
orbit sgate senders patch <id>
sgate_senders_patch
DELETE /sgate/senders/{id}
Delete a sender
writeid stringorbit sgate senders delete <id>
sgate_senders_delete
09

templates

EndpointScopeParametersCLI · MCP tool
GET /sgate/templates
Your message templates
read—orbit sgate templates list
sgate_templates_list
POST /sgate/templates
Create a template (version 1)
writebody: name string, category transactional | marketing | otp, default_lang string, bodies object, submit booleanorbit sgate templates create
sgate_templates_create
GET /sgate/templates/{id}
One template with its versions
readid stringorbit sgate templates get <id>
sgate_templates_get
PATCH /sgate/templates/{id}
Change a template; new text makes a new version
writeid string
body: name string, category transactional | marketing | otp, default_lang string, bodies object, submit boolean
orbit sgate templates patch <id>
sgate_templates_patch
DELETE /sgate/templates/{id}
Delete a template
writeid stringorbit sgate templates delete <id>
sgate_templates_delete
POST /sgate/templates/{id}/submit
Submit the newest version for approval
writeid stringorbit sgate templates submit <id>
sgate_templates_submit
POST /sgate/templates/{id}/preview
Render a version with values, without sending
writeid string
body: lang string, variables object, version latest | approved
orbit sgate templates preview <id>
sgate_templates_preview
10

verifications

EndpointScopeParametersCLI · MCP tool
GET /sgate/verifications
Recent verifications, newest first
read?limit integerorbit sgate verifications list
sgate_verifications_list
POST /sgate/verifications
Send a one-time code to a YunZheng number. Events: sgate.verification.approved | failed | expired | canceled
writebody: to* string, sender_id string, from string, code_length integer, ttl_s integer, max_attempts integer, lang string, template_id string, variables object, client_ref stringorbit sgate verifications create
sgate_verifications_create
GET /sgate/verifications/{id}
One verification
readid stringorbit sgate verifications get <id>
sgate_verifications_get
POST /sgate/verifications/{id}/check
Check the code the person entered; every check uses an attempt
writeid string
body: code* string
orbit sgate verifications check <id>
sgate_verifications_check
POST /sgate/verifications/{id}/resend
Send a new code (after 30 seconds, up to four times); the old one stops working
writeid stringorbit sgate verifications resend <id>
sgate_verifications_resend
POST /sgate/verifications/{id}/cancel
Cancel a pending verification
writeid stringorbit sgate verifications cancel <id>
sgate_verifications_cancel
11

consents

EndpointScopeParametersCLI · MCP tool
GET /sgate/consents
Consent records (opt-in) for marketing
read?q string
?status granted | revoked
?limit integer
orbit sgate consents list
sgate_consents_list
POST /sgate/consents
Record that a person agreed to receive marketing
writebody: recipient* string, sender_id string, source web_form | checkout | keyword | paper | import | api | other, proof* string, granted_at stringorbit sgate consents create
sgate_consents_create
POST /sgate/consents/import
Record up to 1000 consents at once
writebody: records* object[]orbit sgate consents import
sgate_consents_import
DELETE /sgate/consents/{id}
Withdraw a consent (the record is kept as revoked)
writeid stringorbit sgate consents revoke <id>
sgate_consents_revoke
12

scheduled

EndpointScopeParametersCLI · MCP tool
GET /sgate/scheduled
Messages scheduled for later, and what became of them
read?status stringorbit sgate scheduled list
sgate_scheduled_list
DELETE /sgate/scheduled/{id}
Cancel a scheduled message
writeid stringorbit sgate scheduled cancel <id>
sgate_scheduled_cancel
13

broadcasts

EndpointScopeParametersCLI · MCP tool
GET /sgate/broadcasts
Your broadcasts with their reports
read—orbit sgate broadcasts list
sgate_broadcasts_list
POST /sgate/broadcasts
Create a broadcast (a draft) to a list of YunZheng numbers
writebody: name string, category transactional | marketing, sender_id string, from string, template_id string, lang string, body string, rate_per_min integer, recipients objectorbit sgate broadcasts create
sgate_broadcasts_create
GET /sgate/broadcasts/{id}
One broadcast and its report
readid stringorbit sgate broadcasts get <id>
sgate_broadcasts_get
PATCH /sgate/broadcasts/{id}
Change a draft broadcast
writeid string
body: name string, category transactional | marketing, sender_id string, from string, template_id string, lang string, body string, rate_per_min integer, recipients object
orbit sgate broadcasts patch <id>
sgate_broadcasts_patch
DELETE /sgate/broadcasts/{id}
Delete a broadcast that is not sending
writeid stringorbit sgate broadcasts delete <id>
sgate_broadcasts_delete
GET /sgate/broadcasts/{id}/recipients
Per-recipient results
readid string
?status pending | sent | delivered | failed | opted_out | no_consent | skipped
?limit integer
?offset integer
orbit sgate broadcasts recipients <id>
sgate_broadcasts_recipients
POST /sgate/broadcasts/{id}/start
Start now or at start_at. Event when finished: sgate.broadcast.completed
writeid string
body: start_at string
orbit sgate broadcasts start <id>
sgate_broadcasts_start
POST /sgate/broadcasts/{id}/pause
Pause sending
writeid stringorbit sgate broadcasts pause <id>
sgate_broadcasts_pause
POST /sgate/broadcasts/{id}/resume
Resume sending
writeid stringorbit sgate broadcasts resume <id>
sgate_broadcasts_resume
POST /sgate/broadcasts/{id}/cancel
Stop for good; recipients not reached are marked skipped
writeid stringorbit sgate broadcasts cancel <id>
sgate_broadcasts_cancel
Next

Related

Account API reference

Every Account endpoint in the Orbit API (10): method and path, the token scope it needs, its parameters, and the matching CLI command and MCP tool.

Organization API reference

Every Organization endpoint in the Orbit API (10): method and path, the token scope it needs, its parameters, and the matching CLI command and MCP tool.

Services API reference

Every Services endpoint in the Orbit API (15): method and path, the token scope it needs, its parameters, and the matching CLI command and MCP tool.

← All documentation