Introduction
Welcome to the SuperViz REST API documentation. This guide will help you understand general concepts, response codes, and authentication strategies for using the SuperViz API effectively.
Base URL
The SuperViz API is built on REST principles. We enforce HTTPS for all requests to ensure data security, integrity, and privacy. The API does not support HTTP.
All requests should be made to the following base URL: https://api.superviz.com
Authentication
To authenticate your requests, you need to include two pieces of information in the headers:
client_id
: Your Client IDsecret
: Your Secret Key
Example:
curl --request GET \
--url https://api.superviz.com/realtime/participants/my-channel \
--header "client_id: ${YOUR CLIENT_ID}" \
--header "secret: ${YOUR SECRET}"
Obtaining Your API Secret
To utilize the SuperViz API, you'll need to acquire an API Secret. Follow these comprehensive steps to create and retrieve your API credentials:
- Access the SuperViz Dashboard by logging in to your account.
- In the side menu, locate and click on the "Developer" section.
- Within the Developer section, find and select the "Keys" subsection.
- Scroll down to the "API Secret" area at the bottom of the page.
- Click on the "Create New" button to initiate the process.
A modal window will appear, presenting you with the following configuration options:
-
KEY NAME:
- Input a descriptive name for your API key.
- Choose a name that clearly indicates the key's purpose or associated project.
-
EXPIRATION:
- From the dropdown menu, select an appropriate expiration period for your key.
- Available options range from short-term (1 hour) to long-term (365 days):
- 1 hour
- 8 hours
- 24 hours
- 7 days
- 30 days
- 90 days
- 365 days
- Consider your security requirements and intended usage when selecting the expiration period.
-
After configuring the above options, click the "Create" button to generate your API credentials.
Upon successful creation, you'll be provided with two crucial pieces of information:
- Client ID: Your unique identifier for API requests.
- Secret Key: Your authentication token for API access.
Critical Security Note:
- Immediately save both the Client ID and Secret Key in a secure location.
- The Secret Key is displayed only once for security purposes.
- Both the Client ID and Secret Key are required for authenticating your requests to the SuperViz API.
Best Practices for API Credential Management:
- Store your credentials in a secure password manager or encrypted storage.
- Never share your API credentials publicly or with unauthorized individuals.
- Avoid committing API credentials to version control systems or including them in public code repositories.
- Implement a secure method for injecting credentials into your application, such as environment variables.
- Regularly rotate your API credentials, especially for production environments.
With your newly acquired API Secret, you're now equipped to make authenticated requests to the SuperViz API.
Response Codes
SuperViz uses standard HTTP codes to indicate the success or failure of your requests:
Status | Description |
---|---|
200 | Successful request. |
400 | Bad request. Check that the parameters were correct. |
401 | Unauthorized. The API credentials are missing or invalid. |
404 | Not found. The requested resource doesn't exist. |
5xx | Server error. Indicates an issue with SuperViz servers. |