Skip to content

Search the workspace

GET
/search
Code sample: Shell / cURL
curl --request GET \
--url 'https://example.com/api/v1/search?q=example' \
--header 'Authorization: Bearer <token>'

Searches tasks, projects, companies, client people, members, orders, invoices, estimates, tickets, deals and contracts by text. A project is also found by any of its aliases, a company by its legal name or order prefix, an order by its code aliases, its company, or its linked projects, and an invoice as q on GET /invoices finds it: by its number, subject, company, or the name of one of the company’s users. Each resource is searched only when its module is on and the caller holds its view permission, and only the records the caller’s assignments reach are returned. Staff members only: a client member gets no results.

q
required

Text to find across the resources the caller can reach.

string
>= 2 characters <= 100 characters

Text to find across the resources the caller can reach.

type

Comma-separated resource types to search: task, project, company, person, member, order, invoice, estimate, ticket, deal, contract, pull_request. All when omitted.

string

Comma-separated resource types to search: task, project, company, person, member, order, invoice, estimate, ticket, deal, contract, pull_request. All when omitted.

limit

Hits per resource type.

integer
>= 1 <= 25

Hits per resource type.

Hits grouped by type in results.

Media typeapplication/json
object
data
required
object
results
required
Array<object>
object
id
required
string
path
required

Location of the record, relative to the workspace’s /app/ base; for a record that lives outside Chelsea (a pull request), its absolute address.

string
subtitle
required
string | null
title
required
string
type
required
string
Allowed values: task project company person member order invoice estimate ticket deal contract pull_request
webUrl

Absolute address of the record’s page, the same location as path. Absent on an older server.

string
truncated
required

Resource types that had more matches than limit.

Array<string>
Allowed values: task project company person member order invoice estimate ticket deal contract pull_request

Example

{
"data": {
"results": [
{
"type": "task"
}
],
"truncated": [
"task"
]
}
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.