---
title: "Global search over a Meilisearch-indexed entity"
method: GET
path: "/api/search/{indexed_entity}"
tags: ["Search"]
---

# Global search over a Meilisearch-indexed entity

`GET /api/search/{indexed_entity}`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/search/{indexed_entity}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/search/:indexed_entity/get.ts> (a function with typed inputs; its response is checked against the schema)

Searches the Meilisearch index for the given entity type and returns matching items (capped at 100), with entity-specific filtering, permission checks, and optional relationship loading applied.

## Path parameters

- `indexed_entity` 'agency' | 'brand' | 'property' | 'contact' | 'user' | 'league' | 'category' | 'market' | 'organization' | 'venue' | 'subcategory' | 'genre' | 'subgenre' | 'asset', required

## Query parameters

- `SearchIndexedRequest` SearchIndexedRequest
  - `search_term` string, required: Term to search the Meilisearch index for
  - `with_relationships` string[]: Relationships to eager-load on the results. Only the relationships allowed for the searched index are accepted
  - `team_type_id` integer: Filter property results by team type
  - `excluded_id` integer[]: IDs to exclude from the results
  - `with_deleted` boolean: Include soft-deleted records
  - `is_parent` boolean: Filter brands/properties by parent vs child
  - `is_contact_of` integer: Restrict contacts to those belonging to the given entity id
  - `brand_typo_tolerance` boolean: Use the brand index with typo tolerance
  - `organization_access` string[]
  - `linkedin_url` string
  - `email` string, email
  - `for_primary_profile` boolean
  - `for_secondary_profile` boolean
  - `with_organization_users` boolean
  - `show_secondary_profiles` boolean

## Response `200`

The matching indexed items and a total count.

- SearchIndexedResource
  - `items` object[]
    - `id` integer
    - `name` string
    - `type` string, nullable: Set only for company/team/agency/contact entities; absent for all other indexed types.
    - `ulid` string
    - `logo` string, nullable
    - `is_primary_profile` boolean
  - `total` integer

## Other responses

- `400`: Provided entity is not supported.
- `503`: Search service is temporarily unavailable.

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
