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.
Views
Replies
Total Likes
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.
You must use the same client code used during the bulk upload.
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
Views
Replies
Total Likes