Profile
01. Me
Get the basic profile details of the current user.
GET /int/v1/me
Headers - Header
| Name | Type | Description |
|---|---|---|
| Authorization | String | Prefix with "Bearer ". Token value (either Access Key from Admin Console or access_token via OAuth result). |
Examples
CURL Example:
curl -H "Authorization: Bearer <token>" \
-X GET https://<url>/int/v1/me
Javascript Example:
(async (url, token)=>{
try{
const response = await(
await fetch(
`${url}/int/v1/me`,
{
method: "GET",
headers: {
"Authorization": `Bearer ${token}`
}
}
)
).json();
console.log("API response:", response);
}catch(error){
console.error("API error:", error);
}
})(process.env.URL, process.env.TOKEN);
Success response
Success response - Success 200
| Name | Type | Description |
|---|---|---|
| success | Boolean | Indicates whether the operation was successful. |
| data | Object | optionalProfile object. Present when success is true. |
| message | String | optionalError message. Present when success is false. |
Success response example
Success response example - Success:
HTTP/1.1 200 OK
{
"success":true,
"data":{
"firstName": "John",
"lastName": "Smith",
"email": "john.smith@communic8.com",
"sfUserId": "700001",
"_id": "635b559a1da40d7f27ea0f14"
}
}