API reference
Your AI clients
The calling user’s own AI-client connections in the key’s organisation: status, access and today’s calls.
Its operations need the scope ai_access.view.
List your AI clients
GET/v1/user/ai-clients
Lists the AI clients the calling user connected in the key’s organisation, with their access, status and today’s calls; never another user’s connections and never another organisation’s. Filter by status and search text; sorts by one column. Pages by page and per_page (limit is the same as per_page); every page carries current_page, per_page, last_page and total.
Needs the scope ai_access.view.
Query parameters
- statusarray of strings or nullOptional
Only connections in one of these statuses:
active(live now),expired(not revoked, past its expiry) orrevoked. Absent lists every status. A list: repeat the parameter (status=active&status=expired) or send one value (status=active);status[]=activeis accepted too.Values:activeexpiredrevoked(an open set: new values may be added) - searchstring or nullOptional
Only connections whose client name contains this text.
- sortstring or nullOptional
The column to sort by:
client_name,created_atorlast_used_at; a connection never used sorts last in both directions. Without one the newest comes first.Values:client_namecreated_atlast_used_at(an open set: new values may be added) - directionstring or nullOptional
The sort direction,
asc(the default) ordesc.Values:ascdesc(an open set: new values may be added) - limitinteger or nullOptional
The same as
per_page, kept for existing clients. - include_totalstring or nullOptional
Ignored:
totalis always present.Values:truefalse10(an open set: new values may be added) - per_pageinteger or nullOptional
How many items one page holds, from 1 to 100; 25 when omitted.
- pageinteger or nullOptional
The page to read, from 1; 1 when omitted. A page past the last answers no rows.
Returns
200 OK:
One page of the calling user’s own AI-client connections in the key’s organisation.
Each item of the page:
- uuidstring
The UUID of the connection.
- client_namestring
The name the AI client gave itself when it connected.
- accessstring
What the client may do:
readorread_and_act. - statusstring
One of
active(live now),expired(not revoked, past its expiry) orrevoked.Values:activeexpiredrevoked(an open set: new values may be added) - created_atinteger
Epoch milliseconds. When the client was connected.
An instant: epoch milliseconds, UTC. - expires_atinteger or null
Epoch milliseconds. When the connection expires; null for one that never expires.
An instant: epoch milliseconds, UTC. - last_used_atinteger or null
Epoch milliseconds. When the client last made a call; null when it never did.
An instant: epoch milliseconds, UTC. - revoked_atinteger or null
Epoch milliseconds. When the connection was revoked; null for one that was not.
An instant: epoch milliseconds, UTC. - calls_todayinteger
How many calls the client made today (UTC); 0 for a connection that is not active.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.