All service endpoints require authentication via Bearer token.
List services
Retrieve all API services configured for the authenticated user.Headers
string
required
Bearer token for authentication. Format:
Bearer <jwt>Response
Returns an array of service objects.object[]
Status codes
200- Services retrieved successfully401- Unauthorized (missing or invalid token)500- Internal server error
Create service
Create a new service with encrypted credentials.Headers
string
required
Bearer token for authentication. Format:
Bearer <jwt>Request body
string
required
Service name (1-255 characters).
string
required
Base URL for the service API. Must be a valid URL (max 512 characters).
string
required
Authentication type. Must be one of:
api_key, bearer, basic, oauth2.object
required
Key-value pairs of credential names and values. At least one credential is required. Values are encrypted before storage.
Response
number
Unique service identifier.
number
Owner user ID.
string
Service name.
string
Base URL for the service API.
string
Authentication type.
object
Object containing credential keys (values are masked).
string
ISO 8601 timestamp of service creation.
string
ISO 8601 timestamp of last update.
Status codes
201- Service created successfully400- Validation error (invalid request body)401- Unauthorized (missing or invalid token)500- Internal server error
Get service
Retrieve a single service by ID. Ownership is verified.Headers
string
required
Bearer token for authentication. Format:
Bearer <jwt>Path parameters
number
required
Service ID.
Response
number
Unique service identifier.
number
Owner user ID.
string
Service name.
string
Base URL for the service API.
string
Authentication type.
object
Object containing credential keys (values are masked).
string
ISO 8601 timestamp of service creation.
string
ISO 8601 timestamp of last update.
Status codes
200- Service retrieved successfully400- Invalid service ID401- Unauthorized (missing or invalid token)404- Service not found500- Internal server error
Update service
Update service details (name, baseUrl, or authType). To update credentials, use the credentials endpoint.Headers
string
required
Bearer token for authentication. Format:
Bearer <jwt>Path parameters
number
required
Service ID.
Request body
string
Service name (1-255 characters). Optional.
string
Base URL for the service API. Must be a valid URL (max 512 characters). Optional.
string
Authentication type. Must be one of:
api_key, bearer, basic, oauth2. Optional.At least one field must be provided for update.
Response
Returns the updated service object.Status codes
200- Service updated successfully400- Validation error (invalid service ID or request body)401- Unauthorized (missing or invalid token)404- Service not found500- Internal server error
Delete service
Delete a service. This cascades to delete all associated credentials and documentation.Headers
string
required
Bearer token for authentication. Format:
Bearer <jwt>Path parameters
number
required
Service ID.
Response
string
Success message confirming deletion.
Status codes
200- Service deleted successfully400- Invalid service ID401- Unauthorized (missing or invalid token)404- Service not found500- Internal server error
Update credentials
Replace all credentials for a service. Existing credentials are deleted and replaced with the new ones.Headers
string
required
Bearer token for authentication. Format:
Bearer <jwt>Path parameters
number
required
Service ID.
Request body
object
required
Key-value pairs of credential names and values. At least one credential is required. All values are encrypted before storage.
Response
string
Success message confirming credential update.
string[]
Array of credential key names that were stored.
Status codes
200- Credentials updated successfully400- Validation error (invalid service ID or request body)401- Unauthorized (missing or invalid token)404- Service not found500- Internal server error