---
title: "Get all relationships for a specific contact"
description: "GET /contacts/{contact_id}/relationships — Returns the relationships this contact is part of. Each one is a single record naming both contacts, with the variant label that applies to each end."
canonical_url: https://developer.onepagecrm.com/api/reference/contacts/get-contacts-contact_id-relationships/
source: Markdown mirror of https://developer.onepagecrm.com/api/reference/contacts/get-contacts-contact_id-relationships/
---

`GET /contacts/{contact_id}/relationships`

Returns the relationships this contact is part of. Each one is a single record naming both contacts, with the variant label that applies to each end. Filter by relationship_type_id or narrow to a specific pair.

Resource: [Contacts](https://developer.onepagecrm.com/api/reference/contacts/) · [API Reference](https://developer.onepagecrm.com/api/reference/)

## Request

```bash
curl "https://app.onepagecrm.com/api/v3/contacts/{contact_id}/relationships" \
  -u $user_id:$api_key
```

Authentication is HTTP Basic — `user_id` as username, `api_key` as password.
See https://developer.onepagecrm.com/api/authentication/.

## Path parameters

| Name | Type | Description |
| --- | --- | --- |
| `contact_id` | string | Contact ID |

## Query parameters

| Name | Type | Description |
| --- | --- | --- |
| `relationship_type_id` | string | Return relationships of a specific type |
| `contact_id_filter` | string | Return relationships in which the provided contact participate |
| `variant_id_filter` | string | Return relationships in which the provided variant participate |
| `search` | string | Search relationships by contact name or relationship-variant name |
| `symmetrical` | boolean | Filter only symmetrical/non-symmetrical relationship types |
| `date_filter` | string | Signals which date field to be used for only returning resources, added or edited, in a specified date range (only to be used with `since` and/or `until`, not with `modified_since` or `unmodified_since`) |
| `since` | string | Specifies the start of the date range to filter resources, which have been added or edited (use with `date_filter` - date must be in format `YYYY-MM-DD` or UNIX timestamp) |
| `until` | string | Specifies the end of the date range to filter resources, which have been added or edited (use with `date_filter` - date must be in format `YYYY-MM-DD` or UNIX timestamp) |
| `modified_since` | string | Return only resources that were modified since specified time (cannot be used with `date_filter` - date must be in format `YYYY-MM-DD` or UNIX timestamp) |
| `unmodified_since` | string | Return only resources that were unmodified since specified time (cannot be used with `date_filter` - date must be in format `YYYY-MM-DD` or UNIX timestamp) |
| `sort_by` | string | Specify field by which to order the results (use in conjunction with `order`) |
| `order` | string | Specify the order (ascending or descending) of the sort of the results (use in conjunction with `sort_by`) |
| `page` | integer | Page number. Starts from 1. Default is 1. |
| `per_page` | integer | Number of records to return. Maximum 100 allowed. Default is 10. |

## Responses

### 200

OK

```json
{
  "status": 0,
  "message": "OK",
  "timestamp": 1528373119,
  "data": {
    "relationships": [
      {
        "relationship": {
          "id": "5aaa9b059007ba08c9ebaf57",
          "relationship_type_id": "5aaa9b059007ba08c9ebaf58",
          "related_contacts": [
            {
              "variant_id": "5aaa9b059007ba08c9ebaf59",
              "variant_name": "Partner",
              "contact_id": "5aba31ea9007ba0f570c92d4",
              "first_name": "Joe",
              "last_name": "Bloggs",
              "company_id": "5aba31ea9007ba0f570c92f1",
              "company_name": "Morgan's Forensic Lab",
              "photo_url": "https://{foo.bar}/joe-bloggs.jpg",
              "owner_id": "5aba31ea9007ba0f570c92c3"
            },
            {
              "variant_id": "5aaa9b059007ba08c9ebaf59",
              "variant_name": "Partner",
              "contact_id": "5aba31ea9007ba0f570c92d5",
              "first_name": "Jane",
              "last_name": "Doe",
              "company_id": "5aba31ea9007ba0f570c92f3",
              "company_name": "Acme Inc",
              "photo_url": "https://{foo.bar}/jane-doe.jpg",
              "owner_id": "5aba31ea9007ba0f570c92c3"
            }
          ],
          "created_at": "2018-03-15T16:10:45Z",
          "modified_at": "2018-03-15T16:10:45Z"
        }
      }
    ],
    "total_count": 1,
    "page": 1,
    "per_page": 10,
    "max_page": 1
  }
}
```

Standard error responses: 400, 401, 403, 404, 409, 500 — shared across the API. See https://developer.onepagecrm.com/api/errors/.

## Related guides

- [Authentication](https://developer.onepagecrm.com/api/authentication/)
- [Errors](https://developer.onepagecrm.com/api/errors/)
- [Rate limits](https://developer.onepagecrm.com/api/rate-limits/)
- [Pagination](https://developer.onepagecrm.com/api/pagination/)
- [Sorting & time filters](https://developer.onepagecrm.com/api/sorting/)
