Skip to content

Quick-search users

GET
/omnisearch/users
curl --request GET \
--url 'https://work.optidata.cloud/api/omnisearch/users?query=jane' \
--header 'Authorization: Bearer <token>'

Up to ten active users whose name or e-mail contains query, ordered by name. An empty or missing query returns an empty list rather than every user.

query
string

Text matched against the user’s name and e-mail.

Example
jane

Matching users.

Media typeapplication/json
Array<object>
object
uuid
string format: uuid
name
string
email
string format: email
Examples
Examplematches
[
{
"uuid": "9c1f0e2a-4d31-4d8a-8c1a-1f0b6b1f9a10",
"name": "Jane Doe",
"email": "jane.doe@acme.example"
}
]

Missing, malformed or expired authentication key.

Media typeapplication/json

Authentication failures use an error key rather than message.

object
error
required
string
Examples
Examplemissing

No bearer token sent

{
"error": "JWT passport exception: Missing bearer token in request"
}

Rate limit exceeded. Retry after the window resets.

Media typeapplication/json

Generic error envelope used by policy, binding and framework failures.

object
message
required

Human-readable description of the failure.

string
Examples
Examplethrottled
{
"message": "Too Many Attempts."
}