Talk with Archie
API reference › Utility
Skills › Utility

List Accessible Clients

POST/api/v1/skills/clients.list/invoke
Lists the clients you can access, ordered by name. Nothing is required: use search, status, limit and offset to narrow and page the list. The reply holds clients, total_count and has_more.
Body parameters
searchstring · default
Optional text to match against client names, ignoring case; empty returns every client.
jurisdictionstring
Optional jurisdiction code such as AU or UK; accepted today but does not yet narrow the list.
statusstring · default active
Which clients to list: active (the default) or inactive; any other value lists both.
limitinteger · default 50
Maximum number of clients to return in one page; defaults to 50.
offsetinteger · default 0
Number of clients to skip before the page starts, for paging; defaults to 0.
Returns

Skill executed successfully

skillstringRequired
Example list_clients
outputobjectRequired
output.stub_fieldsarray of strings
output.warningsarray of strings
output.clientsarray of values
output.total_countinteger · default 0
output.has_moreboolean · default false
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALIDAuthentication required
403PERMISSION.CAPABILITY_DENIEDInsufficient permissions
404SKILL.NOT_FOUNDSkill not found
422VALIDATION.INVALID_FORMATValidation error
429RATE_LIMIT.USERRate limit exceeded
5XXINTERNAL.UNKNOWNInternal server error
curl https://uk.heyarchie.com/api/v1/skills/clients.list/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "search": "string",
       "jurisdiction": null,
       "status": "string",
       "limit": 0,
       "offset": 0
     }'
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "clients.list",
    search="string",
    jurisdiction=None,
    status="string",
    limit=0,
    offset=0,
)
print(result)
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("clients.list", {
  "search": "string",
  "jurisdiction": null,
  "status": "string",
  "limit": 0,
  "offset": 0
});
console.log(result);
Response
{
  "skill": "list_clients",
  "output": {
    "clients": [
      {
        "id": "94a6d2f0-8c1b-4e57-a3d9-0b5e7c1f6a28",
        "jurisdiction": "AU",
        "name": "Northwind Trading Pty Ltd",
        "status": "active"
      },
      {
        "id": "d70e3b5a-6f12-4c98-b8a4-2e9c1d7f5a60",
        "jurisdiction": "AU",
        "name": "Northwind Logistics Pty Ltd",
        "status": "active"
      }
    ],
    "has_more": false,
    "total_count": 2
  },
  "correlation_id": "<string>"
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}

Every response also carries X-Request-ID. Quote it if you write to us about a call.