> ## Documentation Index
> Fetch the complete documentation index at: https://doc.extole.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Right to Access Requests

> Make General Data Protection Regulation (GDPR) and California Consumer Protection Act (CCPA) Right to Access requests.

## Overview

[//]: # "How does Extole comply with General Data Protection Regulation (GDPR) and the California Consumer Protection Act (CCPA)?"

Extole supports GDPR/CCPA Right to Access requests through support tickets or through API. If you would like to get data about one of your customers, you can submit a support ticket to [support@extole.com](mailto:support@extole.com).

Alternatively you can use the following two APIs to retrieve information.

[//]: ___

## Search Person by Email

[//]: # "How do I search for a person by their email address to fulfill a GDPR or CCPA right to access request?"

The [Search Person](/api-reference) endpoint can be used to retrieve basic profile information and device information, including IP/Geo.

```curl theme={null}
GET https://my.extole.com/api/v2/persons?email=april%40advocate.com
```

**Response**

```json theme={null}
[
  {
    id: "7059776202829706264",
    email: "april@advocate.com",
    first_name: "April",
    last_name: "Advocate",
    partner_user_id: "15786548",
    parameters: {
      company: "Intuit",
      email_capture_acceptance: "true",
    },
    request_contexts: [
      {
        ip: "45.29.223.242",
        device_id: "browser:7059772997041655050",
        created_at: "2022-02-01T09:04:50.164-07:00",
        country: {
          iso_code: "US",
          name: "United States"
        },
        state: {
          iso_code: "TX",
          name: "Texas"
        },
        city: {
          name: "Katy"
        },
        location: {
          latitude: 29.8331,
          longitude: -95.7498
        }
      }
    ],
    locale: {
      last_browser: "en-US,en;q=0.9",
      user_specified: null
    } 
  }
]
```

[//]: ___

## Get Shares

[//]: # "How do I get shares for a person to fulfill a GDPR or CCPA right to access request?"

The Get Shares endpoint gets the list of shares the advocate has made.

```curl theme={null}
GET https://my.extole.com/api/v4/persons/7059776202829706264/shares
```

Response

```json theme={null}
[
  {
    "share_id": "6830397826523129124",
    "shareable_id": "6830394627794392942",
    "channel": "EXTOLE_EMAIL",
    "message": "Dummy message",
    "share_date": "2020-05-24T06:12:02.908-07:00",
    "recipient": "friend@example.com",
    "friend_person_id": "6830397828381759009",
    "link": "https://refer.brand.com/s/d6363t",
    "data": {
      "friend_first_name": "Julio",
    },
    "partner_id": null,
    "subject": null
  }
]
```

[//]: ___

## Get Friends

[//]: # "How do I get friends associated with a person to fulfill a GDPR or CCPA right to access request?"

The [Get Person's Friends](/api-reference)  endpoint gets the list of friend relationships for the advocate, including the reason the friend was connected to the advocate.

```curl theme={null}
GET https://my.extole.com/api/v2/persons/7059776202829706264/friends
```

```json theme={null}
[
  {
    shareable_id: "7059775747513184808",
    reason: "ADVOCATE_CODE",
    container: "production",
    updated_at: "2022-02-01T09:57:46.55-07:00",
    person: {
      id: "7059776202829706264",
      email: "julio@friend.com",
      first_name: "Julio",
      last_name: "Friend",
      partner_user_id: null,
      parameters: {},
      request_contexts: [
        {
          ip: "45.29.223.242",
          device_id: "browser:7059772997041655050",
          created_at: "2022-02-01T09:04:50.164-07:00",
          country: {
            iso_code: "US",
            name: "United States"
          },
          state: {
            iso_code: "TX",
            name: "Texas"
          },
          city: {
            name: "Katy"
          },
          location: {
            latitude: 29.8331,
            longitude: -95.7498
          }
        }
      ],
      locale: {
        last_browser: "en-US,en;q=0.9",
        user_specified: null
      }
    }
  }
]
```

[//]: ___
