Skip to content

Find who knows a topic

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

Searches the tasks the caller reaches for the topic, by meaning and words, and ranks the active team members on them by hours logged, assignments and comments. Needs tasks.view and time.view_all. Individual performance never reaches a client surface. Team members only; a client account is refused.

q
required

The topic, as search text.

string
>= 2 characters <= 100 characters

The topic, as search text.

limit

How many members; 10 when omitted.

integer
>= 1 <= 25

How many members; 10 when omitted.

The members, best first.

Media typeapplication/json
object
data
required
object
experts
required
Array<object>
object
assignedTasks
required
integer
>= -9007199254740991 <= 9007199254740991
comments
required
integer
>= -9007199254740991 <= 9007199254740991
hours
required

Hours logged on the matching tasks.

number
memberId
required
string
name
required
string
path
required

Location of the record, relative to the workspace’s /app/ base.

string
tasks
required

Matching tasks the member touched.

integer
>= -9007199254740991 <= 9007199254740991
topTasks
required
Array<object>
object
id
required
string
label
required
string
path
required

Location of the record, relative to the workspace’s /app/ base.

string
matchedTasks
required

Tasks that matched the topic; the evidence is read from these only.

integer
>= -9007199254740991 <= 9007199254740991
semantic
required

Whether the search matched by meaning as well.

boolean

Example generated

{
"data": {
"experts": [
{
"assignedTasks": 1,
"comments": 1,
"hours": 1,
"memberId": "example",
"name": "example",
"path": "example",
"tasks": 1,
"topTasks": [
{
"id": "example",
"label": "example",
"path": "example"
}
]
}
],
"matchedTasks": 1,
"semantic": true
}
}

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.