API reference for authentication, API keys, and user management on the Plexe Platform.
This document provides detailed information about the authentication endpoints of the Plexe Platform API.
Creates a new API key for your account.
Header | Value | Description |
---|---|---|
Authorization | Bearer TOKEN | Required. Your API access token |
Parameter | Type | Required | Description |
---|---|---|---|
name | string | Yes | Descriptive name for the API key |
permission_level | string | Yes | Permission level: read_only or read_write |
The full API key value (key
field) is displayed only once when the key is created. Store it securely as you won’t be able to retrieve it again.
Returns a list of all API keys for your account.
Header | Value | Description |
---|---|---|
Authorization | Bearer TOKEN | Required. Your API access token |
Parameter | Type | Required | Description |
---|---|---|---|
status | string | No | Filter by status: active or revoked |
limit | integer | No | Maximum number of keys to return (default: 20, max: 100) |
offset | integer | No | Number of keys to skip for pagination (default: 0) |
Retrieves details for a specific API key.
Header | Value | Description |
---|---|---|
Authorization | Bearer TOKEN | Required. Your API access token |
Parameter | Type | Required | Description |
---|---|---|---|
keyId | string | Yes | ID of the API key to retrieve |
Updates the name or expiration of an API key.
Header | Value | Description |
---|---|---|
Authorization | Bearer TOKEN | Required. Your API access token |
Parameter | Type | Required | Description |
---|---|---|---|
keyId | string | Yes | ID of the API key to update |
Parameter | Type | Required | Description |
---|---|---|---|
name | string | No | New name for the API key |
expiration_days | integer | No | New expiration period (in days) from current date |
You cannot change the permission level of an existing key. Create a new key with the desired permissions instead.
Revokes (invalidates) an API key, preventing its further use.
Header | Value | Description |
---|---|---|
Authorization | Bearer TOKEN | Required. Your API access token |
Parameter | Type | Required | Description |
---|---|---|---|
keyId | string | Yes | ID of the API key to revoke |
Revoking an API key is permanent and cannot be undone. Applications using the revoked key will immediately lose access.
The following endpoint is available to retrieve user information for the currently authenticated user.
Returns information about the currently authenticated user.
Header | Value | Description |
---|---|---|
Authorization | Bearer TOKEN | Required. Your API access token |
Multi-Factor Authentication will be available in a future release.
HTTP Status | Error Code | Description |
---|---|---|
400 | invalid_request | The request was invalid |
401 | unauthorized | Authentication failed |
403 | forbidden | Insufficient permissions |
404 | not_found | Resource not found |
409 | resource_exists | Resource already exists |
422 | validation_failed | Validation failed |
429 | rate_limited | Too many requests |
500 | server_error | Internal server error |
Authentication endpoints have rate limits to prevent abuse:
Exceeding these limits will result in a 429 Too Many Requests
response.