Endpoints
GET
List all keys
POST
Create new key
DELETE
Revoke key
List API Keys
GET /v1/dev/keys
Retrieve all your developer API keys
This endpoint requires authentication with an existing API key or user session. The secret key values are not returned (only the prefix is shown).
- cURL
- Python
- JavaScript
Response Example
Response Example
Response Fields
Response Fields
Create API Key
POST /v1/dev/keys
Create a new developer API key
Request Body
Request Body
- cURL
- Python
- JavaScript
Response Example
Response Example
Revoke API Key
DELETE /v1/dev/keys/{key_id}
Revoke (delete) a specific API key permanently
Path Parameters
Path Parameters
- cURL
- Python
- JavaScript
Response
Response
Best Practices
Use Descriptive Names
Name keys after their purpose (e.g., “Analytics Dashboard”, “Zapier Integration”)
One Key Per Application
Create separate keys for different apps so you can revoke them independently
Monitor Usage
Check
last_used_at to identify unused or potentially compromised keysRotate Regularly
Periodically create new keys and revoke old ones
Use Case: Key Management Script
- Python
- JavaScript
Managing Keys in the App
You can also manage API keys directly in the Omi app:Open Omi App
Launch the Omi app on your device
Navigate to Settings
Go to Settings → Developer
Manage Keys
Under “Developer API Keys” you can:
- View all your keys
- Create new keys
- Delete existing keys
Keys created in the app and via the API are the same - you can manage them from either place.