Dashboard
APISubscription Bot API - Configure Custom Hostname
api.botsubscription.com
GET/v1/endpoint
AuthenticationBearer
Token
Stays in this tab. Required for this endpoint — the value below is what gets sent.
Mock
curl --request GET \
  --url https://api.botsubscription.com/v1/endpoint \
  --header 'Authorization: Bearer sk_live_•••'

Configure a Custom Hostname for a Subscription Bot Project

Set the custom hostname for a Discord subscription bot or Telegram subscription bot project. Features that use custom_hostname explain their own hostname requirements in their respective API documentation.

PATCH/v2/projects/{project_id}/settings/custom_hostname

Authorization

Bearer TokenRequired

The token must have the settings:write scope.

Path Parameters

project_idstringrequired

The unique identifier of the project.

Request Body

valuestringrequired

One exact, bare hostname. Wildcards are not supported. Do not include a scheme, port, path, query, or trailing slash.

The value represents exactly one hostname. Setting example.com does not include www.example.com, subdomain.example.com, or any other subdomain. Configure the exact hostname required by the feature using this setting.

Valid:

example.com

Invalid:

https://example.com/
example.com/path
*.example.com

This request only sets the project's custom_hostname value. It does not configure CORS, DNS, API hosting, or browser access. If the value conflicts with an existing verified hostname or origin, the API returns a conflict and does not assign it to the project.

Last updated: