Available APIs
Available APIs
A direct REST API and WebSocket API is also available, eliminating the necessity of installing an SDK. This option is valuable when no PUBQ client library SDK supports your chosen platform, or if you prefer to bypass a client library SDK due to resource limitations.
Using the REST API and WebSocket API directly is fully supported. However, we recommend that customers utilize the PUBQ SDKs, which support a range of platforms available on the PUBQ SDK Downloads page.
REST API
REST API domain:
rest.pubq.dev
REST protocol:
PUBQ REST only accepts SSL secured requests so you should use https://
.
Endpoints
Name | Endpoint | Method | Available Versions | Notes |
---|---|---|---|---|
Publish message | https://rest.pubq.dev/v1/channels/{channel}/messages | POST | v1 | |
Generate token | https://rest.pubq.dev/v1/keys/tokens | POST | v1 | |
Refresh token | https://rest.pubq.dev/v1/keys/tokens/refresh | POST | v1 | |
Revoke token | https://rest.pubq.dev/v1/keys/tokens/revoke | POST | v1 |
WebSocket API
Realtime connection domain:
realtime.pubq.dev
Connection protocol:
PUBQ Realtime only accepts SSL secured connections so you can use wss://
.
Events
NEXT PAGE
Authentication: Overview
Provides an overview of the authentication process.