Endpoints
Last updated
Last updated
An Endpoint is what clients will call to consume the RPC. Endpoints belong to a Subscription, which holds its metadata. An endpoint's name is assigned to you when it's created and is randomly assigned.
GET /api/v1/endpoints
Returns all endpoints to which the current authentication token has access.
Parameters
Name | Type | Description |
---|---|---|
* Either a subscription_uuid
or account_uuid
parameter is required
Request
Example requests with account_uuid and subscription_uuid filtering.
Returns a hash with the endpoints
key containing an array of endpoints objects.
This API is not available.
This API is only limited to account management API tokens created with the reseller role.
POST /api/v1/subscriptions/:subscription_uuid/endpoints
Parameters
Request
Example requests with account_uuid and subscription_uuid filtering. All new allowed origins are automatically enabled.
Response
All submitted keys, plus the following are returned:
PUT /api/v1/endpoints/:endpoint_uuid
Update an endpoint. Only allowed_origins can be updated. Accepts updates as full-updates, where the passed in list overwrites any existing allowed_origins.
Parameters
Request
Example requests with account_uuid and subscription_uuid filtering.
Response
All submitted keys, plus the following are returned:
This API is only limited to accoutn management API tokens created with the reseller role.
PUT /api/v1/endpoints/:endpoint_uuid/activate
Activate an endpoint so that it can be used.
Parameters
endpoint_uuid
is the only parameter that needs to be provided.
Request
Response
This API is only limited to account managemrnt API tokens created with the reseller role.
PUT /api/v1/endpoints/:endpoint_uuid/deactivate
Deactivate an endpoint so that it cannot be used.
Parameters
All parameters are optional.
Request
Example request with optional deactivation_reason
.
Response
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
account_uuid *
string
Will filter the results by account_uuid.
subscription_uuid *
string
Will limit the results by subscription_uuid.
name *required
string
A human-readable name to describe the endpoint.
rate_tier *required
string
The name of the Rate Tier for this endpoint, which defines rate limits on the Endpoint. Each endpoint incurs costs based on the Rate Tier defined for it.
allowed_origins
array[{ value: dns_cname }, { value: dns_cname }]
An array of DNS CNAME records that define origins that can access the endpoint. This is commonly used by frontends that can't obscure an API access token.
uuid
string
The generated primary key to reference this endpoint.
values
array[string (DNS CNAME), ...]
The endpoint values that should be called by clients to consume the RPC.
name
string
A human-readable name to describe the endpoint.
rate_tier *limited to REST API tokens created with the reseller role.
string
A Rate Tier name. It's assigned to an Endpoint in order to determine how much the endpoint costs
allowed_origins *limited to one allowed origin for standard role.
array[{ value: dns_cname, is_active: boolean }, { value: dns_cname, is_active: boolean }]
An array of DNS CNAME and is_active records that define origins that can access the endpoint. This is commonly used by frontends that can't obscure an API access token.
uuid
string
The generated primary key to reference this endpoint.
values
array[string (DNS CNAME), ...]
The endpoint values that should be called by clients to consume the RPC.
deactivation_reason
string
A human readable description to describe the deactivation reason.