API Keys
API keys (Developer Keys) are used to authenticate server-to-server API requests. This guide covers generating, managing, and securing your API keys.
Overview
Dimebia uses secret keys (SK) for API authentication. Each key has:
- Scope: Permissions defining what the key can access
- State: Active or revoked
- Owner: The user who created the key
Key Format
sk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
sk_live_: Prefix indicating a live/production key- 32 random characters: The secret key portion
Generate an API Key
POST /api/developer/mine/generate
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
scope | String | No | Comma-separated list of permissions |