# List Accessible Clients

> 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…

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

search string · default

Optional text to match against client names, ignoring case; empty returns every client.

jurisdiction string

Optional jurisdiction code such as AU or UK; accepted today but does not yet narrow the list.

status string · default active

Which clients to list: active (the default) or inactive; any other value lists both.

limit integer · default 50

Maximum number of clients to return in one page; defaults to 50.

offset integer · default 0

Number of clients to skip before the page starts, for paging; defaults to 0.

Returns

Skill executed successfully

skill string Required

Example list_clients

output object Required

output.stub_fields array of strings

output.warnings array of strings

output.clients array of values

output.total_count integer · default 0

output.has_more boolean · default false

correlation_id string Required

Errors

Status Type When

401 AUTH.TOKEN_INVALID Authentication required

403 PERMISSION.CAPABILITY_DENIED Insufficient permissions

404 SKILL.NOT_FOUND Skill not found

422 VALIDATION.INVALID_FORMAT Validation error

429 RATE_LIMIT.USER Rate limit exceeded

5XX INTERNAL.UNKNOWN Internal server error

[Next Derive Canonical Period Bounds + Matching Prior-Period Bounds →](https://heyarchie.com/en-gb/developers/api-reference/utility/derive-canonical-period-bounds-matching-prior-period-bounds/)

```
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>"
  }
}
```

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