Discord Token API

← Home

Overview

A RESTful API for verifying Discord tokens and retrieving user information. Free to use, no authentication required.

Base URL: https://cure.fm/api

Content-Type: application/json

Endpoint

POST/api/check-token

Verify a Discord token and retrieve associated user information.

Request

{
  "token": "YOUR_DISCORD_TOKEN"
}

Response (200 OK)

{
  "success": true,
  "data": {
    "id": "123456789",
    "username": "Username",
    "discriminator": "0",
    "avatar": "abc123",
    "email": "user@example.com",
    "verified": true,
    "locale": "en-US",
    "phone": "+1234567890",
    "phoneBlockCheck": "Phone Locked",
    "avatarURL": "https://cdn.discordapp.com/avatars/...",
    "createdAt": "2018-04-20T07:19:58.000Z",
    "createdAtFormatted": "April 20, 2018 at 12:19 AM CDT",
    "badges": [
      "Nitro",
      "HypeSquad Bravery",
      "Early Supporter"
    ],
    "public_flags": 131584,
    "premium_type": 2
  }
}

Error Responses

400 - Bad Request

{
  "error": "Token is required"
}

401 - Unauthorized

{
  "error": "Invalid token"
}

500 - Internal Server Error

{
  "error": "Failed to process request",
  "details": "..."
}

Response Fields

FieldTypeDescription
idstringDiscord user ID
usernamestringDiscord username
discriminatorstringUser discriminator (usually "0")
avatarstring | nullAvatar hash
emailstring | nullUser email address
verifiedbooleanEmail verification status
localestringUser locale (e.g., "en-US")
phonestring | nullUser phone number
phoneBlockCheckstringPhone lock status
avatarURLstringFull URL to user avatar
createdAtstringAccount creation date (ISO 8601)
createdAtFormattedstringAccount creation date (formatted)
badgesstring[]Array of detected user badges
public_flagsnumberDiscord public flags bitfield
premium_typenumberNitro type (0=None, 1=Classic, 2=Nitro, 3=Basic)

Badge System

The API now returns a comprehensive list of Discord badges for each user. Badges are automatically detected and include:

Staff & Recognition

  • • Discord Employee
  • • Partnered Server Owner
  • • Discord Certified Moderator
  • • Team User

Nitro & Premium

  • • Nitro / Nitro Classic / Nitro Basic
  • • Early Supporter

HypeSquad

  • • HypeSquad Events
  • • HypeSquad Bravery
  • • HypeSquad Brilliance
  • • HypeSquad Balance

Developers & Hunters

  • • Bug Hunter Level 1 & 2
  • • Verified Bot Developer
  • • Early Verified Bot Developer
  • • Active Developer

Activities

  • • Quest Completer
  • • AutoMod

System & Status

  • • System / System (Urgent)
  • • Quarantined / Spammer
  • • Restricted Collaborator

Note: Badges are detected from Discord's public flags and premium type. Some badges like server boosting duration and Nitro subscription length cannot be detected through user tokens due to Discord API limitations.

Examples

cURL

curl -X POST https://cure.fm/api/check-token \
  -H "Content-Type: application/json" \
  -d '{"token":"YOUR_DISCORD_TOKEN"}'

JavaScript

fetch('https://cure.fm/api/check-token', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ token: 'YOUR_DISCORD_TOKEN' })
})
.then(res => res.json())
.then(data => console.log(data));

Python

import requests

response = requests.post(
    'https://cure.fm/api/check-token',
    json={'token': 'YOUR_DISCORD_TOKEN'}
)
print(response.json())

Node.js

const axios = require('axios');

axios.post('https://cure.fm/api/check-token', {
  token: 'YOUR_DISCORD_TOKEN'
})
.then(res => console.log(res.data))
.catch(err => console.error(err));

Rate Limits

No rate limits currently enforced. Please use responsibly.

Rate limiting may be implemented in the future if needed.

Important Notes

  • • All requests must include Content-Type: application/json
  • • Tokens are validated against Discord's API in real-time
  • • Invalid tokens return a 401 status code
  • • Phone lock status is checked via Discord's library endpoint
  • • Avatar URLs are auto-generated for users without custom avatars
  • • Account creation date is extracted from Discord's snowflake ID
  • NEW: Badge detection includes Discord badges and Nitro tiers
  • • Badges are detected from public_flags bitfield and premium_type
  • • Server boosting and subscription duration badges are not available due to API limitations