Working with the REST API

Welcome to the Dyce iGaming Platform API. This guide will help you integrate our gaming features into your applications, covering authentication, requests, and responses.

Dyce's public API is built using REST principles. It's the same API we use internally for developing our applications, providing you with robust and reliable access to our iGaming platform.

Endpoint

API base URL will be provided through the support channel, and you will find all the endpoints in the API Reference.

The URL will look like this:

https://api.igaming-platform.com/

Authentication

Currently, we support authentication with personal API keys.

Personal API keys

For personal scripts, API keys are the easiest way to access the API. They can be created with our support. To authenticate your requests, you need to pass the newly created key with the header:

X-Dyce-Token: <API_KEY>

curl \
  -X GET \
  -H "Content-Type: application/json" \
  -H "X-Dyce-Token: <Replace this with your API Key>" \
  https://api.igaming-platform.com/users

Getting Started

Our API follows REST principles, allowing you to perform operations on various resources such as users, games, transactions, and more. Here are some example requests to get you started:

Fetch User Information

GET https://api.igaming-platform.com/users/{userId}

This will return information about the specified user.

List Games

GET https://api.igaming-platform.com/games

This will return a list of available games on the platform.

List Sessions from a User

GET https://api.igaming-platform.com/users/{userId}/sessions

This will return a list of sessions for the specified user.

Error Handling

If an error occurs, the API will return an appropriate HTTP status code along with a JSON object containing more details about the error.

Pagination

For endpoints that return lists of items, the API supports pagination. Use the page and limit query parameters to control the results.

Rate Limiting

Please note that API usage may be subject to rate limits. Consult the documentation or contact support for specific details.

Support

If you encounter any issues or have questions about our API, please don't hesitate to reach out to our support team at [email protected] or join our dedicated support channel on Slack.

Last updated