List Phrases
List the phrases in a custom model. Results are paginated.
GET https://api.reson8.dev/v1/custom-model/{id}/phrases
Request
| Header |
Value |
| Authorization |
ApiKey <api_key> or Bearer <access_token> |
Path Parameters
| Parameter |
Type |
Description |
id |
string |
ID of the custom model |
Query Parameters
| Parameter |
Type |
Required |
Default |
Description |
page |
number |
No |
0 |
Zero-based page index |
size |
number |
No |
100 |
Page size (between 1 and 10000) |
Example
Response
200 OK
| Field |
Type |
Description |
phrases |
object[] |
Phrases on this page |
phrases[].value |
string |
The phrase text |
page |
number |
Zero-based index of the returned page |
size |
number |
Page size used |
total |
number |
Total number of phrases in the custom model |
Example
{
"phrases": [
{ "value": "myocardial infarction" },
{ "value": "atrial fibrillation" },
{ "value": "echocardiogram" }
],
"page": 0,
"size": 100,
"total": 3
}
Errors
| Status |
Code |
Description |
| 400 |
INVALID_REQUEST |
Invalid pagination parameters |
| 401 |
UNAUTHORIZED |
Invalid or expired credentials |
| 404 |
NOT_FOUND |
Custom model not found |
| 500 |
INTERNAL_ERROR |
Unexpected server error |