REST APIView
List views
Retrieve a paginated list of the brand's views.
A view is a named saved filter over a brand's prompts (any combination of prompt type, countries, tags, and status). The prompt set is resolved from the filters at query time, so a view always reflects the brand's current prompts.
Authorization
BearerAuth AuthorizationBearer <token>
API token authentication. Use format: Bearer ot_your-token-here
In: header
Path Parameters
brand*string
Unique identifier for the brand
Format
uuidQuery Parameters
page?integer
Page number (1-indexed)
Default
1Range
1 <= valuepageSize?integer
Number of items per page
Default
20Range
1 <= value <= 100Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://app.useomnia.com/api/v1/brands/550e8400-e29b-41d4-a716-446655440000/views"{
"pagination": {
"page": 1,
"pageSize": 10,
"totalItems": 420
},
"links": {
"prev": "https://app.useomnia.com/api/v1/resource?page=1&pageSize=10",
"next": "https://app.useomnia.com/api/v1/resource?page=3&pageSize=10"
},
"data": {
"views": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"brandId": "550e8400-e29b-41d4-a716-446655440000",
"name": "US branded prompts",
"filters": {
"promptType": [
"Branded"
],
"countries": [
"us",
"de"
],
"status": [
"active"
],
"tags": [
"product",
"high-priority"
],
"tagsMatchMode": "any"
},
"createdAt": "2026-01-01T09:30:00Z",
"updatedAt": "2026-01-01T09:30:00Z"
}
]
}
}{
"error": {
"code": 1002,
"description": "Invalid input parameters"
}
}{
"error": {
"code": 1004,
"description": "Invalid or expired API token"
}
}{
"error": {
"code": 1006,
"description": "Item not found"
}
}{
"error": {
"code": 1001,
"description": "Internal error"
}
}