Create Hosted API
Create a hosted API. The slug is a DNS label, globally unique on the
shared domain (409 hosted_api_slug_taken) and immutable afterwards.
Dark launch: requires the hosted_apis_access entitlement (402 hosted_apis_not_in_plan otherwise).
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.
Runs the API may start per UTC day through its run routes; 1000 when omitted.
Response headers
Response
The public host, <slug>.<hosted-api domain>; empty where no domain is configured.
consumer_key: every request presents a ck_ bearer minted for this
API. public: no credential; only read resolvers may be served, and
the per-IP limiter is the only bound.
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.