Dec 17, 2024 7:12 PM
Our platform provides access to a Public API that follows the OpenAPI specification, enabling customers to interact programmatically with their data and perform various operations through API endpoints.
To explore and understand available API routes, you can access the API documentation hosted on your specific domain.
Note: Currently, any customer can view other subdomains' API documentation. However, viewing API documentation does not grant access to other customers’ data or systems. Authentication via a valid API token is required to interact with any endpoints.
In order to use the Public API endpoints, you must generate an API token. The token acts as a unique identifier and allows secure interaction with your API.
Once generated, the API token is displayed only once. It won't be retrievable later on, so please copy and securely store it immediately.
API tokens are time-bound and include an expiration date. Be aware of the token’s expiry and generate a new token before it expires to ensure uninterrupted access to the Public API.
Once a token expires, any API calls using that token will fail.
Treat API tokens like passwords. Do not share them with unauthorized users.
Store tokens in a secure location (e.g. a password manager or encrypted storage).
Regularly audit API tokens and regenerate them as needed to maintain security.
Once you have your API token, you can include it in your requests to authenticate API calls.
Include the token in the Authorization header using the following format:
Authorization: token <your_api_token>
curl -X GET "https://{subdomain}.epochapp.com/api/v1/example_endpoint" \
-H "Authorization: token YOUR_API_TOKEN"
Replace {subdomain} with your domain and YOUR_API_TOKEN with the token you generated.
Verify the token has not expired. Ensure you are including the token in the correct request header format.
If you lose your API token, you can generate a new one from the Settings page.
If you have a question about Epoch's API that wasn't answered here, contact support@epochapp.com.
Get in touch with our customer experience team. We'll reach out with next steps.
Contact us