Skip to main content

Create and Manage API Keys

An API Key is your only credential for accessing the Real200 gateway. Each Key is linked to a user account and can have quotas, expiration times, and access permissions configured.

Create an API Keyโ€‹

  1. Log in to the Real200 Console
  2. Click API Keys in the left navigation (or visit /console/token)
  3. Click Create New Key
  4. Fill in a Key name (optional, for distinguishing different use cases)
  5. Click Confirm Creation

:::important Security Reminder

The API Key is displayed only once at creation. Please copy and save it immediately. For security reasons, the system will never show the complete Key value again.

:::

API Key Formatโ€‹

sk-real200-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Manage API Keysโ€‹

View Key Listโ€‹

In the API Keys page of the console, you can view all created Keys including:

FieldDescription
Key NameCustom identifier
Key ValueFirst 8 and last 4 characters shown, middle replaced with ยทยทยท
Statusactive or disabled
UsageToken count and cost consumed by this Key
CreatedKey creation date

Disable/Enable Keyโ€‹

  • Click Disable on the Key row to temporarily stop it
  • Disabled Keys produce no API calls
  • Click Enable again to resume

Delete Keyโ€‹

:::danger Irreversible Action

Deleting a Key is irreversible. Once deleted, the Key is immediately invalid and all requests using it will return 401 Unauthorized.

:::

Best Practicesโ€‹

Rotation Strategyโ€‹

  1. Create a new Key
  2. Replace with the new Key in your code
  3. After confirming the new Key works, disable the old one
  4. Observe for 24 hours, then delete the old Key

Separate Keys by Use Caseโ€‹

ScenarioRecommendation
ProductionDedicated Key with high quota
Test/DevDedicated Key with low quota for cost tracking
Third-partyDedicated Key, can be disabled without affecting main business

Common Questionsโ€‹

What if my API Key is leaked?
  1. Immediately disable the Key (Console โ†’ API Keys โ†’ Disable)
  2. Check Call Logs for any anomalous calls
  3. Create a new Key and replace it in your code
  4. After confirming the new Key works, delete the leaked old Key
How many API Keys can one account create?

No default limit. Create keys as needed by use case to avoid management complexity.