Youniton Docs

Clients & contacts

Read and manage client organisations and their contacts.

14 token operations · 5 app-only

#The directory and the organisation picker

GET/client-organisations
Personal tokenrelationships:readSessionF-REL-01

Query parameters

qstring

Min length 1 · Max length 120

filter[status]string

One of: active archived all · Default: "active"

filter[pinned]string

F-REL-01.R20: true keeps only the organisations that the reader pinned (/me/client-pins).

One of: true false · Default: "false"

page[number]integer

Default: 1 · Min 1

page[size]integer

One of: 10 20 25 30 50 100 · Default: 25

Headers

X-Kanso-Tenantstring (uuid)

Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3).

Responses

200The visible organisations with totals and segment counts.application/json
Errors400403404One problem shape

#Create a client organisation

POST/client-organisations
Personal tokenrelationships:writeSessionIdempotency-KeyF-REL-01

Headers

X-Kanso-Tenantstring (uuid)

Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3).

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The new organisation.application/json
Errors403404422One problem shape

#The client card — details, counts and the reader's projects

GET/client-organisations/{organisationId}
Personal tokenrelationships:readSessionF-REL-01

Path parameters

organisationIdrequiredstring (uuid)

Headers

X-Kanso-Tenantstring (uuid)

Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3).

Responses

200The card; the ETag carries the version.application/json
Errors403404One problem shape

#Rename an organisation or change its website

PATCH/client-organisations/{organisationId}
Personal tokenrelationships:writeSessionIf-MatchF-REL-01

Path parameters

organisationIdrequiredstring (uuid)

Headers

X-Kanso-Tenantstring (uuid)

Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3).

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/merge-patch+jsonrequired

Loading the schema…

Responses

200The updated organisation.application/json
Errors403404412422428One problem shape

#Archive an organisation — hidden from pickers, every reference kept

POST/client-organisations/{organisationId}/archive
Personal tokenrelationships:writeSessionIdempotency-KeyIf-MatchF-REL-01

Path parameters

organisationIdrequiredstring (uuid)

Headers

X-Kanso-Tenantstring (uuid)

Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3).

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200The archived organisation.application/json
Errors403404409412428One problem shape

#The contacts of an organisation with their portal status — the card's table

GET/client-organisations/{organisationId}/contacts
Personal tokenrelationships:readSessionF-REL-02

Path parameters

organisationIdrequiredstring (uuid)

Query parameters

qstring

Min length 1 · Max length 120

filter[status]string

One of: active archived all · Default: "active"

page[number]integer

Default: 1 · Min 1

page[size]integer

One of: 10 20 25 30 50 100 · Default: 25

Headers

X-Kanso-Tenantstring (uuid)

Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3).

Responses

200A page of contacts by name.application/json
Errors400403404One problem shape

#Add a contact to an organisation

POST/client-organisations/{organisationId}/contacts
Personal tokenrelationships:writeSessionIdempotency-KeyF-REL-02

Path parameters

organisationIdrequiredstring (uuid)

Headers

X-Kanso-Tenantstring (uuid)

Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3).

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The new contact.application/json
Errors403404409422One problem shape

#The projects of an organisation in the reader's scope, past the card's first 25

GET/client-organisations/{organisationId}/projects
Personal tokenrelationships:readSessionF-REL-01

Path parameters

organisationIdrequiredstring (uuid)

Query parameters

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantstring (uuid)

Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3).

Responses

200A page of at most 50 projects by name.application/json
Errors400403404One problem shape

#Restore an archived organisation

POST/client-organisations/{organisationId}/restore
Personal tokenrelationships:writeSessionIdempotency-KeyIf-MatchF-REL-01

Path parameters

organisationIdrequiredstring (uuid)

Headers

X-Kanso-Tenantstring (uuid)

Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3).

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200The restored organisation.application/json
Errors403404409412428One problem shape

#The contact picker across the organisations the caller may see

GET/contacts
Personal tokenrelationships:readSessionF-REL-02

Query parameters

qstring

Min length 1 · Max length 120

filter[organisationId]string (uuid)
filter[projectKey]string

Pattern ^[A-Z][A-Z0-9]{1,9}$

filter[status]string

One of: active archived all · Default: "active"

page[number]integer

Default: 1 · Min 1

page[size]integer

One of: 10 20 25 30 50 100 · Default: 10

Headers

X-Kanso-Tenantstring (uuid)

Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3).

Responses

200Matching contacts with their organisation.application/json
Errors400403404One problem shape

#The contact panel

GET/contacts/{contactId}
Personal tokenrelationships:readSessionF-REL-02

Path parameters

contactIdrequiredstring (uuid)

Headers

X-Kanso-Tenantstring (uuid)

Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3).

Responses

200The contact with its organisation, linked guest and portal entries; the ETag carries the version.application/json
Errors403404One problem shape

#Edit a contact — name and e-mail only while unlinked

PATCH/contacts/{contactId}
Personal tokenrelationships:writeSessionIf-MatchF-REL-02

Path parameters

contactIdrequiredstring (uuid)

Headers

X-Kanso-Tenantstring (uuid)

Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3).

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/merge-patch+jsonrequired

Loading the schema…

Responses

200The updated contact.application/json
Errors403404409412422428One problem shape

#Archive a contact — hidden from pickers, link and access kept

POST/contacts/{contactId}/archive
Personal tokenrelationships:writeSessionIdempotency-KeyIf-MatchF-REL-02

Path parameters

contactIdrequiredstring (uuid)

Headers

X-Kanso-Tenantstring (uuid)

Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3).

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200The archived contact.application/json
Errors403404409412428One problem shape

#Restore an archived contact

POST/contacts/{contactId}/restore
Personal tokenrelationships:writeSessionIdempotency-KeyIf-MatchF-REL-02

Path parameters

contactIdrequiredstring (uuid)

Headers

X-Kanso-Tenantstring (uuid)

Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3).

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200The restored contact.application/json
Errors403404409412422428One problem shape

#Delete an organisation that nothing refers to

DELETE/client-organisations/{organisationId}
Session (app only)F-REL-01

Path parameters

organisationIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

204Deleted.

No body.

Errors403404409One problem shape

#Erase a contact — irreversible

POST/contacts/{contactId}/erase
Session (app only)Idempotency-KeyF-REL-08

Path parameters

contactIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200The erased contact's pseudonym and whether the certificate has been recorded; a repeat returns the same.application/json
Errors403404503One problem shape

#Invite a contact to a project's client portal

POST/contacts/{contactId}/invite
Session (app only)Idempotency-KeyF-REL-03

Path parameters

contactIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The invitation was created, or resent.application/json
Errors403404409422429One problem shape

#The projects a contact can be invited to, with their client versions and the contact's state on each

GET/contacts/{contactId}/invite-options
Session (app only)F-REL-03

Path parameters

contactIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200Eligibility, the reason when there is none, and the eligible projects.application/json
Errors403404One problem shape

#CSV of a selection of contacts or of a filtered set

POST/contacts/export
Session (app only)Idempotency-KeyF-REL-08

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

200A streamed text/csv attachment (up to 100,000 rows); the audit record was committed before the first byte.text/csv
202An export operation for larger sets; its result is the file id and row count, read with GET /operations/{id}.application/json
Errors400403404409422429One problem shape

Was this helpful?