Skip to main content

Get Your API Key

Before making your first request, you need an API key. Here's the fastest way to get one.

  1. Click Login in the top navigation bar.
  2. Choose Discord or Google to authenticate.
  3. After authenticating, you'll be redirected back to the site.
  4. Click Profile in the top navigation bar to view your API key.

Option 2 — Discord Bot​

  1. Join the Discord server.
  2. Navigate to the #keys channel.
  3. Run the /account register command.
  4. The bot will send your key via private message.

Using Your Key​

Pass your key in the x-api-key header on every request:

GET /v2/users/dymerz HTTP/1.1 Host: apiv2.starcitizen-api.com x-api-key:

danger

Never expose your API key.

Do not put your key in client-side JavaScript or public repositories. Route API calls through your own backend so the key never reaches the browser.


Managing Your Key​

After logging in, click Profile to visit your profile page where you can:

  • View and copy your API key
  • Check your remaining daily quota
  • Renew your key (generates a new one and invalidates the old)
  • Delete your account (permanent — the key is removed and the same login cannot register a new one)

For details on how the daily quota works and how to check it programmatically, see Rate Limits & Quota.


Next Step​

You have a key — now make your first request.

Make Your First Request →