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

# How to Retrieve refId for User Profile

This page details how to retrieve the `refId` for a user profile.

## Background

During [user profile creation](/apis/profiles/create-profile), you will receive
four fields in the response:

```json theme={"system"}
{
    "status": "success",
    "title": "Digg It",
    "refId": "140b8709bd6ade099b242d895e268fb886130c53",
    "profileKey": "7TVRLEZ-24A43C0-NJW0Z82-F11984N"
}
```

It is important to securely store both the `refId` and `profileKey` in your
system. The `profileKey` is used to make API requests for a specific user
profile while the `refId` is how Ayrshare refers to that user profile during API
calls.

## RefId Retrieval

There are a couple ways to retrieve the `refId` for your user profiles.

1. Use the [Get User Profiles](/apis/profiles/get-profiles) endpoint to get all
   user profiles associated with the primary profile. Filter through each returned
   profile to find the `refId` associated with the title provided during user
   profile creation. (Note: The `profileKey` for each user profile is not returned
   from this endpoint, so you can't associate the `refId` against an existing
   `profileKey`).

2. Navigate to the User Profiles page in the Ayrshare dashboard. Scroll through
   or search for the relevant user profile. You'll be able to view the `refId` for
   the user profile here.

<img src="https://mintcdn.com/ayrshare-docs/dKBti0xVDJrOZ19f/images/help-center/technical-support/refId_retrieval.webp?fit=max&auto=format&n=dKBti0xVDJrOZ19f&q=85&s=85d75053946846782a04ef087d8bf26d" alt="retrieve refId" class="center" width="3856" height="2676" data-path="images/help-center/technical-support/refId_retrieval.webp" />
