Quick-search users
GET
/omnisearch/users
const url = 'https://work.optidata.cloud/api/omnisearch/users?query=jane';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”query
string
Text matched against the user’s name and e-mail.
Example
janeResponses
Section titled “ Responses ”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."}