# Retrieve Contact

`GET https://api.inboxjot.com/v1/contacts/{contact_id}`

Retrieves one contact with its segments and topics. Look it up by id or by address. Needs a Full key. A key limited to one domain answers 403.

## Path Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `contact_id` | string | Yes | A contact id, or the contact's email address. |

## Response

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | No | The contact id. |
| `email` | string | No | The contact address. |
| `first_name` | string \| null | No | First name. |
| `last_name` | string \| null | No | Last name. |
| `status` | string | No | One of `subscribed`, `pending` or `unsubscribed`. |
| `language` | string | No | Language code. |
| `properties` | object | No | Property values, keyed by the property key. |
| `segments` | object[] | No | The segments the contact is in. |
| `segments[].id` | string | No | The segment id. |
| `segments[].name` | string | No | The segment name. |
| `topics` | object[] | No | Every topic in the workspace, with the contact’s choice. |
| `topics[].id` | string | No | The topic id. |
| `topics[].name` | string | No | The topic name. |
| `topics[].status` | string \| null | No | The contact’s choice: `subscribed`, `pending` or `unsubscribed`. `null` when the contact has not chosen. |
| `topics[].subscribed` | boolean | No | Whether the contact gets email for this topic, counting the topic default. |
| `created_at` | string | No | ISO 8601 time. |
| `updated_at` | string | No | ISO 8601 time. |

## Request

cURL:

```bash
curl -X GET https://api.inboxjot.com/v1/contacts/con_06d2mfk8r9wq3zh5ka2pe \
  -H "Authorization: Bearer $INBOXJOT_API_KEY"
```

Node.js:

```javascript
import { Inboxjot } from 'inboxjot';

const inboxjot = new Inboxjot();

const contact = await inboxjot.contacts.get('con_06d2mfk8r9wq3zh5ka2pe');
```

Rust:

```rust
use inboxjot::Inboxjot;

let client = Inboxjot::from_env()?;

let contact = client.contacts().get("con_06d2mfk8r9wq3zh5ka2pe").await?;
```

Go:

```go
client := inboxjot.NewClient("")

contact, err := client.Contacts.Get(ctx, "con_06d2mfk8r9wq3zh5ka2pe")
```

Python:

```python
from inboxjot import Inboxjot

inboxjot = Inboxjot()

contact = inboxjot.contacts.get("con_06d2mfk8r9wq3zh5ka2pe")
```

## Responses

| Status | Description |
| --- | --- |
| 200 | Returns the contact. |
| 400 | A path parameter is invalid. |
| 401 | The API key is missing, revoked or expired. |
| 403 | The key is a Sending key or is limited to one domain, or the request comes from outside its IP allowlist. |
| 404 | The contact does not exist in this workspace. |
| 429 | Too many requests for this key. Wait for the seconds in the Retry-After header. |
| 500 | Something failed on our side. Retry later. |

200:

```json
{
  "id": "con_06d2mfk8r9wq3zh5ka2pe",
  "email": "sukhamoy@example.com",
  "first_name": "Sukha",
  "last_name": "Moy",
  "status": "subscribed",
  "language": "en",
  "properties": {
    "plan": "pro"
  },
  "segments": [
    {
      "id": "seg_06d2mfk8r2kd7fq4mx9ab",
      "name": "Customers"
    }
  ],
  "topics": [
    {
      "id": "top_06d2mfk8r6pn2tc8yw3hd",
      "name": "Product Updates",
      "status": "subscribed",
      "subscribed": true
    }
  ],
  "created_at": "2026-10-12T09:41:07.000Z",
  "updated_at": "2026-10-15T14:02:33.000Z"
}
```

400:

```json
{
  "name": "validation_error",
  "status": 400,
  "message": "length is greater than 320",
  "errors": [
    {
      "message": "length is greater than 320",
      "location": "contact_id"
    }
  ],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

401:

```json
{
  "name": "unauthorized",
  "status": 401,
  "message": "Unauthorized",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

403:

```json
{
  "name": "forbidden",
  "status": 403,
  "message": "This key cannot be used from 203.0.113.7",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

404:

```json
{
  "name": "not_found",
  "status": 404,
  "message": "Contact not found",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

429:

```json
{
  "name": "rate_limit_exceeded",
  "status": 429,
  "message": "Too many attempts. Try again later.",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

500:

```json
{
  "name": "unknown_error",
  "status": 500,
  "message": "Something went wrong. Please try again later.",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```
