How to get an API Key

πŸ‘

Creating Your First Game

To get started using the Stardust API, you will first need to have created a game. If you haven't already, check out our Guide to Creating Your First Game.

Getting your API Key

Click on the API Keys tab and click the Add API Key button. You are able to create multiple keys which can be set as active or inactive. These keys enable access to the full Stardust API.

API Keys
API Keys

API Keys

You have now created your API key and are ready to begin using the Stardust API!

Using Your API Key

Pass the API key as the X-API-Key header of each request X-API-Key: <key>.

Create Player

Create Player

curl --location 'https://core-api.stardust.gg/v1/player/create' \
--header 'x-api-key: BzidUjZtgp292ae7sbCnj7xAH6zPhnfW7xcrxKr4' \
--header 'Content-Type: application/json' \
--data '{
     "uniqueId": "888",
     "image": "https://labs.openai.com/s/pxiXnFmayBgnBxqBpUdGOeBt",
     "userData": {
          "exp": 0,
          "premium": false,
          "username": "hotpotato123"
     }
}'