myProfile
Requires a customer (portal or buyer app) session.
Returns the authenticated buyer profile (name, phone, address count).
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query MyProfile {
myProfile {
id
name
title
companyName
firstName
lastName
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query MyProfile {\n myProfile {\n id\n name\n title\n companyName\n firstName\n lastName\n }\n}"
}
EOF
Response:
{
"data": {
"myProfile": {
"id": "id",
"name": "string",
"title": "string",
"companyName": "string",
"firstName": "string",
"lastName": "string"
}
}
}
myProfile: MobileBuyerProfile!
Type
MobileBuyerProfile object
Authenticated buyer profile surface. v1 derives values from the JWT and Redis-backed addresses; promote to a Prisma-backed read model later.