Create Hosted API
Authentication
Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.
Headers
Request
3-40 lowercase letters, digits or hyphens; a DNS label, unique on the shared domain; immutable.
consumer_key when omitted. public is refused with 403 hosted_api_public_refused where the workspace’s policy does not allow internet-facing APIs.
Runs the API may start per UTC day through its run routes; 1000 when omitted.
Reads the API may serve from storage per UTC day; 100000 when omitted.
Documents the API’s write routes may land per UTC day; 10000 when omitted.
Register the key set end-user tokens are verified against (an https URL on a public host).
Response headers
Response
The public host, <slug>.<hosted-api domain>; empty where no domain is configured.
Who the API answers, narrowest first. owner: only the API’s owner,
with their own Speechify API key or console session. workspace:
any member of the owning workspace, the same way. user_token:
every request presents a short-lived JWT your backend signed for the
calling user (sub, exp within 24 hours, optional aud naming
this API), verified against the API’s signing secret (HS256) or its
registered JWKS URL (RS256 / ES256 / EdDSA). consumer_key: every
request presents a ck_ bearer minted for this API. public: no
credential; only read resolvers may be served, the per-IP limiter is
the only bound, and a workspace can refuse it as policy
(hosted_apis_public_allowed). The three modes that name a person
(owner, workspace, user_token) let routes bind {{user.sub}},
key the response cache per person, and stamp a written document as
that person’s.
Browser origins allowed to call the API (* for any). Empty for server-to-server only.
Runs the API’s run routes may start per UTC day; the spend ceiling behind a leaked consumer key.
The key set end-user tokens are verified against when set (an
https URL on a public host, read on demand and cached briefly).
When null, tokens are verified against the API’s signing secret.
The masked signing secret end-user tokens are verified against (the rotate-user-token-secret verb mints it); null until minted.
Reads the API’s store, file and run_latest routes may serve from
storage per UTC day; the storage ceiling behind a hot path. Always
present on a current API; optional on the wire so a reader built
before it existed keeps parsing. A
response served from the cache is not a read. Past the cap a read
route answers 429 route_read_limit_reached. Without Redis nothing
counts: a public route is paused by the limiter in that state, a
keyed or tokened caller passes.
Documents the API’s write routes may land per UTC day; the storage
ceiling behind a leaked key on a write route. Past the cap a write
route answers 429 route_write_limit_reached. Optional on the wire
for the same reason as daily_read_cap.