Skip to content

Search activity history via BigQuery

GET
/api/v1/activity/search
curl --request GET \
--url 'https://api.ultimateteam.ai/api/v1/activity/search?q=example&page=1&page_size=20' \
--header 'X-API-Key: <X-API-Key>'

Queries BigQuery for historical activity entries matching the search term, with optional filters for agent_role, action_type, and date range. Results are paginated.

q
required
Q

Search query text

string
>= 1 characters

Search query text

agent_role
Any of:
string

Filter by agent role (e.g. ‘ceo’)

action_type
Any of:
string

Filter by action type (e.g. ‘decision_made’)

start_date
Any of:
string

Start date filter (ISO format, e.g. ‘2026-01-01’)

end_date
Any of:
string

End date filter (ISO format, e.g. ‘2026-12-31’)

page
Page

Page number (1-indexed)

integer
default: 1 >= 1

Page number (1-indexed)

page_size
Page Size

Results per page (max 100)

integer
default: 20 >= 1 <= 100

Results per page (max 100)

Successful Response

Media typeapplication/json
ActivitySearchResponse

Response envelope for the search endpoint.

Attributes: items: List of matching activity entries from BigQuery. page: Current page number. page_size: Requested page size. query: The original search query string.

object
items
required
Items
Array<object>
object
key
additional properties
any
page
required
Page
integer
page_size
required
Page Size
integer
query
required
Query
string
Examplegenerated
{
"items": [
{}
],
"page": 1,
"page_size": 1,
"query": "example"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}