Skip to main content
POST
/
v2
/
app-resources
/
search
Search App Resources
curl --request POST \
  --url https://public.api.serval.com/v2/app-resources/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "teamId": "<string>",
  "appInstanceIds": [
    "<string>"
  ],
  "externalIds": [
    "<string>"
  ],
  "resourceIds": [
    "<string>"
  ],
  "limit": 123,
  "cursor": "<string>"
}
'
{
  "data": [
    {
      "id": "<string>",
      "appInstanceId": "<string>",
      "resourceType": "<string>",
      "name": "<string>",
      "description": "<string>",
      "externalId": "<string>"
    }
  ],
  "nextCursor": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
teamId
string | null

Filter by team ID. Required if app_instance_ids is not provided.

appInstanceIds
string[]

Filter by app instance IDs.

externalIds
string[]

Filter by external IDs. Requires exactly one app_instance_id.

resourceIds
string[]

Filter by specific resource IDs.

limit
integer<int32> | null

Maximum number of results to return. Default: 5000.

cursor
string | null

Cursor for pagination. Pass the next_cursor from the previous response.

Response

Success

data
Resource · object[]

The list of resources.

nextCursor
string | null

Cursor for fetching the next page. Null if no more results.