Get a member's public profile
GET
/directories/{id}
const url = 'https://acme.mykreezalid.com/front_api/v1/directories/4242';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://acme.mykreezalid.com/front_api/v1/directories/4242Returns the public profile of a member: name, picture, member group and store presentation. Works without an access token.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer
Example
4242Identifier of the member.
Responses
Section titled “Responses”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
group
The member group the member belongs to.
object
object
string
id
integer
name
string
alias
string
store
Presentation of the member’s store. Both fields are null when the member has no store.
object
description
string
cover
Cover image of the store.
string
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"}