API Keys
Create and manage Linea API keys for programmatic workspace access.
API Keys
Linea API keys grant programmatic access to the API scoped to a workspace. They are passed as Bearer tokens in the Authorization header, just like session tokens.
All endpoints scoped to: /v1/workspaces/:workspaceId/api-keys
Endpoints
POST /v1/workspaces/:wId/api-keys
Create a new API key. The full key value is returned once at creation time and is never retrievable again.
Body
Response 201
Copy the key value immediately: subsequent GET requests will never include it.
GET /v1/workspaces/:wId/api-keys
List all API keys for the workspace. The key field is never returned.
Response 200
DELETE /v1/workspaces/:wId/api-keys/:id
Revoke an API key immediately. Any in-flight requests using this key will start failing.
Response 204