Expand my Community achievements bar.

How to retrieve profile by bulk profile update with pcId

Avatar

Level 1

Hi Support Team,

I tried with https://experienceleague.adobe.com/en/docs/target-dev/developer/api/profile-apis/profile-bulk-api to upload pcId profile but i don't know how to retrieve profile info from API. Although i can retrieve profile by https://experienceleague.adobe.com/en/docs/target-dev/developer/api/profile-apis/profile-fetch#using.... Thank you.

2 Replies

Avatar

Level 4

Hi @TreasureDa ,

 

Retrieving profile data via API

To fetch profile data, you cannot use the same bulk upload endpoint. Instead, you need to use the Profile Fetch API:

Docs: https://experienceleague.adobe.com/en/docs/target-dev/developer/api/profile-apis/profile-fetch

 

Example Fetch URL:

GET https://<client>.tt.omtrdc.net/rest/v1/profiles/<profileId>?client=<client>

 

  • Replace <client> with your Adobe Target client code.

  • Replace <profileId> with the pcId you are querying.

  • The pcId is the unique Target profile ID and can be found in the mbox cookie or returned from Target.
  • You must use the same client code used during the bulk upload.

     

Avatar

Community Advisor

Hi @TreasureDa ,

Bulk Upload API:
Used to send data to Adobe Target for multiple profiles at once.
Endpoint:
https://<client>.tt.omtrdc.net/rest/v1/profiles/bulk

Profile Fetch API:
Used to retrieve a single profile by its pcId.
Endpoint:
GET https://<client>.tt.omtrdc.net/rest/v1/profiles/<pcId>?client=<client>

How to Retrieve a Profile by pcId

Get your pcId:

This is typically found in the mbox cookie under the name mboxPC.

Or you can retrieve it after a Target call response.

Use the Profile Fetch API:

 

GET https://<client>.tt.omtrdc.net/rest/v1/profiles/<pcId>?client=<client>

 

Replace:

<client>: your Adobe Target client code

<pcId>: the profile ID you used during bulk upload

This will return a JSON object with profile attributes like this:

{
  "profileAttributes": {
    "loyaltyStatus": "gold",
    "lastLoginDate": "2025-04-29"
  }
}

Make sure you wait a few seconds after uploading via bulk API before fetching — Adobe Target may take a moment to ingest the data.

The client code in the fetch URL must match the one used during the upload.

The pcId must exactly match what was used during upload (case-sensitive).

Regards,
Amit