# Search

> One search across Events, Tasks, Assets and Users & Resources, with the best matches first.

This is the Markdown copy of https://api.exhibitday.com/Help/V1?epf=3&topic=search for AI tools. Code examples are in curl, JavaScript, Python and C#; the help page shows all 8 languages, and https://api.exhibitday.com/llms-full.txt has the complete reference in one file. Index of all pages: https://api.exhibitday.com/llms.txt

Key facts:

- Base URL: https://api.exhibitday.com/v1
- Authentication: send the workspace API key as `Authorization: Bearer YOUR_API_KEY`. `X-API-Key` and the legacy `api_key` parameter still work. Find the key under Workspace Settings > API & Integrations > API Access.
- Rate limit: 50 calls per second per workspace by default. Workspace rate checks return `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (seconds) headers; a separate IP rate check can refuse a request before those headers are added. A 429 response carries `Retry-After` (seconds). Use the returned limit and retry headers rather than assuming a fixed allowance.
- Error responses are JSON with `status_code`, `status`, `message`, `errors`, a stable `error_code`, `error_params` (the parameters the errors refer to), `request_id` (also in the X-Request-Id header) and, when applicable, `warnings`. Successful object responses also include warnings for unknown, unsupported, ignored or defaulted parameters, and for empty values sent on an update. On a create, an empty value means no value and gets no warning. Warnings can also report attachments that could not be copied to an inventory return.
- Successful warnings: arrays and 304 responses retain their shape and expose a JSON-array `X-API-Warnings` header. `X-API-Warnings-Count` gives the full count; `X-API-Warnings-Truncated: true` means the 6000-character ASCII header limit was reached. Request the default object format for the full warning list. Invalid values that would be stored return 400.
- Lists: use `$limit` and `$offset` on endpoints that support paging (responses include `total_records` and `has_more`). Use `filter_by_last_update_timestamp_greater_than_or_equal_to` where supported to retrieve changes; upsert every returned record by ID, including records at the inclusive timestamp boundary.
- Retries: send an `Idempotency-Key` header with a create (POST). Successful responses are retained for 24 hours; retry the same request with the same byte-identical, case-sensitive key during that period to reuse the saved response. Follow the documented 409 handling when a request is still running or its outcome is unknown. DELETE has no idempotency replay contract; after an uncertain response, retrieve the record first and treat a later `not_found` as already absent. Successful API GET responses that return JSON include an `ETag` for `If-None-Match`; file downloads do not.
- HTTP methods: send actual documented verbs. Method tunneling is refused with 400 `invalid_request` on every endpoint: `X-HTTP-Method-Override` as a header, a form field or a query-string parameter, and form/query `_method` (a request with no API key in a header, the query string or a form field gets 401 first; a request with a JSON body gets 400, because its key may be inside the body).
- Updates: on PATCH requests, omit fields you want to keep. Empty or whitespace-only update values are ignored with a warning. A JSON null or the text `null` clears or resets a supported field; fields that cannot be cleared return an error. The legacy `$ignore_params_with_empty_values=true` option drops empty values and JSON nulls before updates; the text `null` still requests a clear. Related fields can also change to keep the record consistent; see the endpoint's field rules. To update only if none of the fields that PATCH can change has changed since you read the record, read it with `$include_record_revision=true` and send the returned `record_revision` as `expected_revision` (the help page lists what each revision covers; a change undone in between does not count); a 409 `record_changed` then means nothing was saved: read it again and decide whether to send your change again. After no response or a 5xx on a PATCH, read the record before sending it again: it may already have been saved.

### Search Events, Tasks, Assets and People

`GET https://api.exhibitday.com/v1/search`

Documentation: https://api.exhibitday.com/Help/V1?epf=3&topic=search#get-v1-search

Effect: Reads data only. Safe to retry.

Find a record when you know a few words of it but not whether it is an Event, a Task, an Asset or a person. One request searches all of them and returns the best matches first, each with the IDs and links to open the full record.


Parameters:

| Name | Type | Required? | Description | Details |
| --- | --- | --- | --- | --- |
| search_text | String | Yes | The text to search for. | 2 to 200 characters, at most 10 words. Every word must be found, in any order, in one of the searched fields. |
| record_types | String | No | The kinds of records to search. | Optional. Any of `events`, `tasks`, `assets`, `users_and_resources`, separated by commas. Default: all four. |
| include_past_events | Boolean | No | Set to false to leave out past Events. | Default: true. An Event is past once it has ended, in your workspace time zone. Past Events come after upcoming Events that match equally well. Tasks on past Events are still searched. |
| include_completed_tasks | Boolean | No | Set to false to leave out Completed Tasks. | Default: true. Completed Tasks come after Incomplete Tasks that match equally well. |
| include_archived_assets | Boolean | No | Set to false to leave out Archived Assets. | Default: true. Archived Assets come after the Active Assets that match. Send false when you're looking for an Asset to reserve. |
| $limit | Number | No | The most matches to return. | Default: 25. Maximum: 100. |
| $offset | Number | No | How many matches to skip. | Default: 0. Maximum: 1,000. Use it with $limit to read the next page. has_more turns false when the next page would start past 1,000; total_records still counts every match, so add words or choose fewer record_types to reach the rest. |
| $result_format | String | No | By default, the response is an object containing `list_data` and the paging totals (`records_found`, `total_records`, `has_more`). Send `array` to get just a JSON array of the records, or `wrapped_in_array` to get the default object inside a one-item array. | Allowed values: `array` \| `wrapped_in_array` |

#### What is searched

- Events: name, venue, tags, and the Event ID when the whole text is a number. Past Events are included, after the upcoming and in-progress Events that match equally well, unless you send include_past_events=false.

- Tasks: name and details. Completed Tasks are included, after the Incomplete Tasks that match equally well, unless you send include_completed_tasks=false.

- Assets: name, tags and internal identifier. Archived Assets are included, after the Active Assets that match, unless you send include_archived_assets=false.

- Users & Resources: first and last name. Email addresses are not searched.

#### Reading the results

record_type says what each match is: event, task, asset or person. The matching record comes in the same short form the other lists return: event (an Event Lite, as with $return_event_lites on GET /v1/events), task (a Task Lite), asset (an Asset Lite, whose asset_status says Active or Archived) or user (a person; its type says user or resource). The other three are null.

matched_on says where the text was found: name, venue, tags, details (Task details), event_id (the Event ID) or internal_identifier (an Asset's internal identifier). When not every word is in the name, it names the venue (or, for an Asset, the internal identifier) if any word is found there, otherwise the tags or the Task details. api_url is the request that returns the full record; exhibitday_url inside the Event, Task and Asset objects opens it on the ExhibitDay website.

#### For a more targeted search

When you know what kind of record you need, its own search has filters this one doesn't. These guides show how to use them:

- [Search Events by Name, Custom Field or Tag](https://api.exhibitday.com/Help/V1?guide=search-events): upcoming or past Events, start and end dates, Events that start in one year, your system's ID in an integration field, and Events changed since a time.

- [Search Tasks by Name, Details, Assignee and Due Date](https://api.exhibitday.com/Help/V1?guide=search-tasks): Tasks for one Event, General Tasks, Incomplete or Completed Tasks, Assignees, Contributors and Due Dates.

- [Search Assets by Name, Custom Field or Tag](https://api.exhibitday.com/Help/V1?guide=search-assets): Single-Unit Capital Assets or Collateral / Multi-Quantity Items, Active or Archived Assets, Storage Locations and reservation dates.

- [Find Users and Resources by Name, Email or Role](https://api.exhibitday.com/Help/V1?guide=find-people): only users or only Resources, people you already have IDs for, and a workspace role.

#### How search matching works

Searches ignore letter case, accents and spaces before or after your text, so `cafe`, ` Café ` and `CAFE` find the same records. The characters `%`, `_` and `[` match themselves; they are not wildcards. A blank name, text, tag or email search is ignored.

Search looks for each word you send, in any order: every word must be found in one of the record's searched fields, so `vegas booth` finds a Task named "Booth shipping - Las Vegas Expo". Send at most 10 words.

Example — curl:

```bash
curl -X GET "https://api.exhibitday.com/v1/search?search_text=Vegas%20booth" -H "Authorization: Bearer YOUR_API_KEY"
```

Example — Node.js:

```javascript
const response = await fetch("https://api.exhibitday.com/v1/search?" + new URLSearchParams({ "search_text": "Vegas booth" }), {
  method: "GET",
  headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await response.json();
console.log(response.status, data);
```

Example — Python:

```python
import requests

response = requests.get(
    "https://api.exhibitday.com/v1/search",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    params={"search_text": "Vegas booth"},
)
print(response.status_code, response.json())
```

Example — C#:

```csharp
using System;
using System.Net.Http;
using System.Net.Http.Headers;

using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "YOUR_API_KEY");
var response = await client.GetAsync("https://api.exhibitday.com/v1/search?search_text=Vegas%20booth");
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");
```

Example HTTP response body (JSON): GET /v1/search - HTTP 200

Illustrative response. Assume the workspace has an Asset and a Task whose names contain the words vegas and booth, and an Event whose venue mentions Vegas and whose tags mention the booth. IDs and names are illustrative. Request inputs: {"search_text":"Vegas booth"}.

```json
{
  "records_found": 3,
  "total_records": 1,
  "has_more": false,
  "list_type": "search_result",
  "list_data": [
    {
      "record_type": "asset",
      "matched_on": "name",
      "api_url": "https://api.exhibitday.com/v1/assets/info?id=4567",
      "event": null,
      "task": null,
      "asset": {
        "id": 4567,
        "exhibitday_url": "https://www.exhibitday.com/Workspace/Asset/98765?aid=4567",
        "asset_type_id": 1,
        "asset_status_id": 1,
        "asset_status": "Active",
        "name": "Vegas booth backdrop 10 ft",
        "current_status": "In Storage",
        "returns_to_storage": null,
        "in_progress_reservation_count": 0,
        "quantity_available_in_storage": 1,
        "projected_future_balance": 1,
        "current_storage_footprint": 0.00,
        "projected_future_footprint": 0.00,
        "dimensions_unit": "in",
        "volume_unit": "cu ft",
        "has_complete_dimensions": false
      },
      "user": null
    },
    {
      "record_type": "task",
      "matched_on": "name",
      "api_url": "https://api.exhibitday.com/v1/tasks/info?id=98761",
      "event": null,
      "task": {
        "id": 98761,
        "exhibitday_url": "https://www.exhibitday.com/Workspace/TaskView/98765?tid=98761",
        "display_rank": 1,
        "name": "Book booth shipping to Vegas",
        "due_date": "2027-03-01",
        "assignee_user_id": "11111111-2222-4333-8444-555555555555",
        "assignee_display_name": "Jane Smith",
        "is_completed": false,
        "task_completed_timestamp_est": null,
        "task_completed_by_user_id": null,
        "event": {
          "id": 12345,
          "exhibitday_url": "https://www.exhibitday.com/Workspace/Event/98765?eid=12345",
          "name": "Las Vegas Expo 2027",
          "start_date": "2027-03-09",
          "end_date": "2027-03-11",
          "participation_type_id": 1,
          "participation_type": "Exhibiting",
          "format_id": 1,
          "format": "In-Person",
          "event_created_timestamp": "2026-11-02T15:04:05Z",
          "event_last_update_timestamp": "2026-11-02T15:04:05Z"
        },
        "task_created_by_user_id": "11111111-2222-4333-8444-555555555555",
        "task_created_timestamp": "2026-11-02T15:04:05Z",
        "task_last_update_timestamp": "2026-11-02T15:04:05Z",
        "integration_metadata_field_1": null,
        "integration_metadata_field_2": null,
        "integration_metadata_field_3": null,
        "integration_metadata_field_4": null,
        "integration_metadata_field_5": null
      },
      "asset": null,
      "user": null
    },
    {
      "record_type": "event",
      "matched_on": "venue",
      "api_url": "https://api.exhibitday.com/v1/events/info?id=12345",
      "event": {
        "id": 12345,
        "exhibitday_url": "https://www.exhibitday.com/Workspace/Event/98765?eid=12345",
        "name": "Las Vegas Expo 2027",
        "start_date": "2027-03-09",
        "end_date": "2027-03-11",
        "participation_type_id": 1,
        "participation_type": "Exhibiting",
        "format_id": 1,
        "format": "In-Person",
        "star_rating": 4,
        "event_created_timestamp": "2026-11-02T15:04:05Z",
        "event_last_update_timestamp": "2026-11-02T15:04:05Z",
        "integration_metadata_field_1": null,
        "integration_metadata_field_2": null,
        "integration_metadata_field_3": null,
        "integration_metadata_field_4": null,
        "integration_metadata_field_5": null
      },
      "task": null,
      "asset": null,
      "user": null
    }
  ]
}
```

