---
title: "Get Started"
icon : "key"
description: "Sign up, create an API key, and make your first call."
---

# Get your API key

Sign in, create the key, copy it, and run your first request. Total time: about five minutes.

## Sign in

Open [envyauth.my.id/login](https://envyauth.my.id/login).

New user: click the **Sign up** tab, paste your invite code, then click **Connect Discord**.

<Screenshot
  src ="/assets/docs/_getstated/stepone.png"
  alt ="Sign-up screen with invite code field and Connect Discord button"
/>

<Info title="No invite code?">
  Invites come from your plan purchase. If you bought a plan and didn't get one, message us in [Discord](https://redirect.envyauth.my.id/discord).
</Info>

Returning user: click the **Sign in** tab, then paste your API key or click **Continue with Discord**.

<Screenshot
  src ="/assets/docs/_getstated/steptwo.png"
  alt ="Sign-in screen with API key field or Continue with Discord button"
/>

## Open the API Tokens page

Click your profile, then go to **Settings → API Tokens**.

<Screenshot
  src ="/assets/docs/_getstated/step3.png"
  alt ="API Tokens page in the dashboard, with an empty token list"
/>

## Create a token

Click **Generate Token** and fill in the form:

- **Token Name** — anything you'll recognize later.
- **Allowlist IPs** *(optional)* — paste IPs one per line to restrict access to known servers. Skip if unsure.
- **Permissions** — what this key can do:
  - **Read Only** *(recommended for testing)* — read access, no writes.
  - **Update Script** — update existing scripts only.
  - **Delete** — delete access. Use with a paired read role.
  - **Administrator** — full create, update, and delete access.

Click **Generate**.

<Screenshot
  src ="/assets/docs/_getstated/step4.png"
  alt ="Generate Token modal with name, IP allowlist, and permission checkboxes"
/>

<Tip title="Start with Read Only">
  Make a Read Only key first to test that everything works. Once you're sure your code is correct, create a stronger key for real use.
</Tip>

## Copy the key — you only get one chance

Your new key appears in a banner at the top of the page. Copy it now and paste it into a password manager or your `.env` file. If you dismiss the banner without copying, the key is gone and you'll need to delete it and create a new one.

<Screenshot
  src ="/assets/docs/_getstated/step5.png"
  alt ="Newly generated token revealed, with a Copy button and a warning that it will not be shown again"
/>

<Warning title="Treat your key like a password">
  Anyone who has this key can use it within the permissions you gave it. Don't paste it into screenshots, chat messages, or public repos. If it leaks, come back to this page and click **delete** on the leaked one, then generate a new one.
</Warning>

## Test it

Replace `YOUR_API_KEY` and run:

```bash
curl https://api.envyauth.my.id/api/v3/me/account \
  -H "Authorization: Bearer YOUR_API_KEY"
```

Pick the tab that matches the status you got:

<CodeGroup tabs={[
  {
    title: '200 OK',
    lang : 'json',
    code : '{\n  "success": true,\n  "data": {\n    "id": "acc_...",\n    "username": "your-handle",\n    "email": "you@example.com",\n    "plan": "max",\n    "expiry_date_unix": 1750000000,\n    "created_at": "2026-01-12T08:42:11.123Z"\n  },\n  "requestid": "01HV..."\n}',
  },
  {
    title: '401',
    lang : 'json',
    code : '{\n  "success": false,\n  "error": "Missing or invalid Bearer token.",\n  "code": "AUTH_INVALID",\n  "requestid": "01HV..."\n}',
  },
  {
    title: '403',
    lang : 'json',
    code : '{\n  "success": false,\n  "error": "This token doesn\'t have permission to access this resource.",\n  "code": "PERMISSION_DENIED",\n  "requestid": "01HV..."\n}',
  },
  {
    title: '429',
    lang : 'json',
    code : '{\n  "success": false,\n  "error": "Too many requests. Slow down.",\n  "code": "RATE_LIMITED",\n  "retry_after_seconds": 30,\n  "requestid": "01HV..."\n}',
  },
]} />

`200 OK` means your key works. Every endpoint at `api.envyauth.my.id/api/v3/...` uses the same `Authorization: Bearer …` header.

Error codes:

- **401** — key is wrong, expired, or missing the `Bearer ` prefix.
- **403** — key is valid but lacks permission for that endpoint. Generate a stronger key.
- **429** — rate limited. Wait `retry_after_seconds` and retry.

## Where to go next

- [Connect the Discord bot](/docs/discord-bot) — link the bot to manage users, sessions, and commands from Discord.
- The full API reference, Roblox SDK, ad reward guides, and macro docs are in progress.

Ping us in [Discord](https://redirect.envyauth.my.id/discord) if you get stuck.
