---
docId: doc_41dc0b94e08045918db986ef1fa4b6e5
title: Get a contact
description: Get the detailed information of a specific contact.
api:
  group: clientes
  auth: bearer
  operations:
    - operationId: getClient
      method: GET
      path: '/v1/clients/{id}'
      postmanName: Get a Client
---

<script>
  import { Ways } from '$lib/components';
</script>

# Get a contact

Read a contact's profile and moderation by ID, phone number or email. It searches the credential's workspace. If you can access several, choose one with `?workspace=`.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl https://api.platic.ai/v1/clients/5215512345678 \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
const contact = await platic.clients.get("5215512345678");
```

</Ways.Way>
</Ways>

## Path parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `id` | string | The contact's ID, their phone number in E.164 format without `+`, or their email. If two contacts have that email, it answers `409 MULTIPLE_CONTACTS_MATCH`: use the ID | ✓ |

## Query parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `workspace` | string | Workspace to look in. Required if your credential covers several workspaces; without it the API answers `400`. A workspace the credential does not cover also answers `400` | — |

## Response

```json
{
  "status": "success",
  "data": {
    "id": "274fc73cb7d84a17955914fdc1a1f9d0",
    "phoneNumber": "524491255844",
    "name": "Ana Smith",
    "firstname": "Ana",
    "lastname": "Smith",
    "email": "ana@example.com",
    "birthdate": null,
    "gender": "female",
    "company": "Acme",
    "country": "MX",
    "state": "Jalisco",
    "city": "Guadalajara",
    "address": null,
    "postalCode": null,
    "status": "active",
    "moderation": {
      "totalStrikes": 0,
      "lastAction": null,
      "lastSource": null,
      "lastSeverity": null,
      "lastFlaggedAt": null,
      "lastCategories": [],
      "lastMatchedTerms": [],
      "blockedAt": null,
      "blockedBy": null,
      "blockedReason": null
    },
    "tags": [],
    "owners": ["user1@acme.com", "user2@acme.com"],
    "customFields": {
      "plate": "ABC123",
      "reception_id": "REC001",
      "claim_date": "2025-02-01"
    },
    "creationDate": "2025-02-06T16:45:50.146Z",
    "lastUpdate": "2025-02-06T16:45:50.146Z"
  }
}
```

`data` contains the contact. `creationDate` and `lastUpdate` can be `null`.

| Field | Description |
|-------|-------------|
| `id` | Internal ID of the contact |
| `phoneNumber` | Contact's phone number without the `+` prefix |
| `name` | Full name of the contact |
| `firstname` | Contact's first name |
| `lastname` | Contact's last name |
| `email` | Email address |
| `birthdate` | Date of birth |
| `gender` | Gender |
| `company` | Company name |
| `country` | Country of residence |
| `state` | State of residence |
| `city` | City of residence |
| `address` | Full address |
| `postalCode` | Postal code |
| `status` | Contact status: `active` or `blocked` |
| `moderation` | Moderation history, see below |
| `tags` | Tags on the contact |
| `owners` | List of the responsible users' emails |
| `customFields` | The contact's custom fields |
| `creationDate` | Creation date in ISO 8601 format |
| `lastUpdate` | Last update date in ISO 8601 format |

### The `moderation` object

The object is always complete. With no incidents, it has `totalStrikes: 0` and the other fields are `null` or empty.

| Field | Description |
|-------|-------------|
| `totalStrikes` | Moderation strikes accumulated by the contact |
| `lastAction` | Action taken on the last offense: `warn`, `assist` or `spam` |
| `lastSource` | What detected it: `lexicon`, `openai`, `llm_guardrail` or `supervisor` |
| `lastSeverity` | Severity of the last offense: `low`, `medium` or `high` |
| `lastFlaggedAt` | When the last offense was recorded, in ISO 8601 |
| `lastCategories` | Categories reported by the moderator |
| `lastMatchedTerms` | Terms that triggered the detection |
| `blockedAt` | When the contact was blocked, in ISO 8601. `null` if active |
| `blockedBy` | Who blocked it. `null` if the block was automatic |
| `blockedReason` | Reason for the block: `guardrails_threshold_reached`, `manual_dashboard`, `conversation_spam`, `api_request`, or the free-form reason you sent when you [blocked it](/api-reference/contacts/moderate) |

## Errors

| Status | `details.code` | When it happens |
|--------|----------------|-----------------|
| `400` | `INVALID_REQUEST` | The credential covers several workspaces and `?workspace=` is missing, or the supplied workspace is not authorized. `details.available` lists the available ones and `details.requested` shows the one you sent |
| `401` | `UNAUTHENTICATED` | The credential is missing or invalid |
| `403` | `FORBIDDEN` | The credential does not have the Contacts module (`Missing contacts permission`) |
| `404` | `CLIENT_NOT_FOUND` | No contact in that workspace has that identifier, it was deleted, or it is outside the reach of the user's role |
| `409` | `MULTIPLE_CONTACTS_MATCH` | Two contacts have that email: use the ID. `details.clientIds` lists them |

```json
{
  "code": 404,
  "error": "Not Found - The resource doesn't exist",
  "details": {
    "code": "CLIENT_NOT_FOUND",
    "message": "Client not found"
  }
}
```

The general error format is in [Errors](/api-reference/errors).
