Skip to content

Get a member's public profile

GET
/directories/{id}
curl --request GET \
--url https://acme.mykreezalid.com/front_api/v1/directories/4242

Returns the public profile of a member: name, picture, member group and store presentation. Works without an access token.

id
required
integer

Example

4242

Identifier of the member.

The member’s public profile.

Media typeapplication/json
object
user
object
object
string
id
integer
public_name
string
avatar

URL of the member’s profile picture.

string format: uri
nullable
group

The member group the member belongs to.

object
object
string
id
integer
nullable
name
string
nullable
alias
string
nullable
store

Presentation of the member’s store. Both fields are null when the member has no store.

object
description
string
nullable
cover

Cover image of the store.

string
nullable

Example

{
"user": {
"object": "User",
"id": 4242,
"public_name": "Jane D.",
"group": {
"object": "Group",
"id": 12,
"name": "Vendors",
"alias": "vendors"
}
}
}

No member has this identifier.

Media typeapplication/json

Error body returned by the Front API when it refuses a request.

object
code

HTTP status code, repeated in the body.

integer
status
string
message

Human-readable reason.

string

Example

{
"code": 403,
"status": "error",
"message": "Token not found in request"
}