List AI models
GET
/api/v1/ext/ai-agents/models
The reply models an agent can use.
Auth: Bearer access_token
Scope: ai_agents.read
Use an id as config_metadata.model. Models run on the account's own OpenAI (or OpenRouter) key, set on the dashboard.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| workspace_id | query | number | yes | A workspace of the installer. |
Responses
| Status | When |
|---|---|
200 | OK |
401 | Missing or invalid token |
403 | Missing scope |
404 | workspace_id does not exist or is not the installer's (same response for both) |
502 | The AI service could not be reached |
RequestResponses
curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/ai-agents/models" \
-H "Authorization: Bearer <ACCESS_TOKEN>"OK
{
"success": true,
"data": [
{
"id": "gpt-4.1-mini",
"name": "GPT-4.1 mini",
"provider": "openai",
"description": "Fast and inexpensive; good for most conversations.",
"recommended": true
}
]
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Query parameters
A workspace of the installer.
Request URL
GEThttps://backend.mysmsgateway.app/api/v1/ext/ai-agents/models
Previous
« List AI agents
Next
Get AI agent »
