---
title: "Contacts"
description: "Create, list and manage client-portal access for a workspace's contacts."
---

> Documentation Index
> Fetch the complete documentation index at: https://tarkle.tech/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Contacts

A contact is a client of the workspace (a `clients` row) — the same people a transfer or gallery can be delivered to and who can be given client-portal access.

| Method and path | Scope | What it does |
| --- | --- | --- |
| `POST /contacts` | `contacts:create` | Add a contact |
| `GET /contacts` | `contacts:read` | List contacts, newest first |
| `POST /contacts/{id}/portal-access` | `contacts:portal` | Turn client-portal access on or off |
| `POST /contacts/{id}/portal-invite` | `contacts:portal` | Resend the portal sign-in link |
| `GET`/`POST /contacts/{id}/storage-limit` | `contacts:read` / `contacts:portal` | Read or set how much the contact may upload from their portal |

## Add a contact

```bash
curl -X POST -H "Authorization: Bearer $TARKLE_TOKEN" -H "X-Workspace-Key: $KEY" -H "Content-Type: application/json" \
  -d '{"email":"jane@acme.com","first_name":"Jane","last_name":"Doe"}' \
  https://tarkle.com/api/v1/contacts
```

```json
{
  "contactId": "9fcb...",
  "name": "Jane Doe",
  "email": "jane@acme.com",
  "status": "active",
  "portalAccess": false,
  "portalInvitedAt": null,
  "portalSignedIn": false,
  "organizations": [],
  "createdAt": "2026-11-06T00:00:00.000Z"
}
```

This never emails the contact or grants portal access on its own — use `POST /contacts/{id}/portal-access` for that.

### Body

| Field | Required | Description |
| --- | --- | --- |
| `email` | Yes | |
| `first_name` | No | |
| `last_name` | No | |
| `organization_name` | No | Creates an organization for this contact as a side effect, same as the app's "Add contact" form |
| `business` | No | |

## List contacts

```bash
curl -H "Authorization: Bearer $TARKLE_TOKEN" -H "X-Workspace-Key: $KEY" "https://tarkle.com/api/v1/contacts?query=jane&limit=50"
```

Answers `{ "contacts": [...] }`. `query` matches email, first name or last name; `limit` defaults to 50, max 200.

## Client portal access

```bash
curl -X POST -H "Authorization: Bearer $TARKLE_TOKEN" -H "X-Workspace-Key: $KEY" -H "Content-Type: application/json" \
  -d '{"enabled":true}' \
  https://tarkle.com/api/v1/contacts/9fcb.../portal-access
```

The first time access is turned on, Tarkle sends the portal invite email itself. Answers `{ "contactId", "portalAccess", "inviteEmailSent" }`.

`POST /contacts/{id}/portal-invite` resends that sign-in link (409 if the contact doesn't have portal access yet). Both need a Pro workspace.

## Portal storage limit

```bash
curl -X POST -H "Authorization: Bearer $TARKLE_TOKEN" -H "X-Workspace-Key: $KEY" -H "Content-Type: application/json" \
  -d '{"limit_gb":10}' \
  https://tarkle.com/api/v1/contacts/9fcb.../storage-limit
```

`limit_gb` is 1 to 10,000. `GET` reads the limit and what the contact has uploaded so far from their portal.

Source: https://tarkle.tech/docs/api/contacts/index.mdx
