List AI provider profiles
aiProviders.read
Response
array
Example
Get the active AI provider profile
null in data if none is configured as active.
Required permission: aiProviders.read
Response
Returns the same profile object as items in List AI provider profiles, or{ "data": null } if no active profile exists.
Example
Create an AI provider profile
isActive: true, any previously active profile is automatically deactivated.
Required permission: aiProviders.create
Request body
string
required
A descriptive name for this profile (e.g.
OpenAI GPT-4o).string
required
The base URL of the AI API. For OpenAI-compatible APIs, this is typically
https://api.openai.com/v1.string
required
The API key for authenticating with the AI service.
string
required
The model to use (e.g.
gpt-4o, claude-3-5-sonnet-20241022).string
Optional default system prompt to include in all AI requests made through this profile.
boolean
Whether to make this the active profile immediately. Only one profile can be active at a time.
Response — 201 Created
Returns the created AI provider profile object.Example
Update an AI provider profile
aiProviders.update
Path parameters
string (uuid)
required
The unique identifier of the profile to update.
Request body
string
New profile name. Omit to leave unchanged.
string
New API base URL. Omit to leave unchanged.
string
New API key. Omit to leave unchanged.
string
New model name. Omit to leave unchanged.
string
New default system prompt. Omit to leave unchanged.
boolean
New active state. Setting to
true deactivates any currently active profile.Response — 200 OK
Returns the updated AI provider profile object.Example
Delete an AI provider profile
aiProviders.delete
Path parameters
string (uuid)
required
The unique identifier of the profile to delete.
Response
object
Example
Test an AI provider configuration
profileId) or an ad-hoc configuration (by providing connection details directly).
Required permission: aiProviders.update
Request body
string (uuid)
Optional. The ID of an existing profile to test. If provided, the saved configuration is used as the base, and any other fields in the request override it.
string
API base URL to test. Required if
profileId is not provided.string
API key to test. Required if
profileId is not provided.string
Model name to test.
string
Optional system prompt to include in the test request.
Response
object