Overview
PATCH
/auth/meauthUpdate the caller's own profile (name, slug, avatar, public-profile toggle)
Update fields of a record in me.
Auth: bearerAuth — calls run as the authenticated user.
Request body
application/json · optional
- nameoptionalstring
- slugoptionalstring
- avatarUrloptionalstring
- publicProfileEnabledoptionalboolean
Example
{
"name": "string",
"slug": "string",
"avatarUrl": "string",
"publicProfileEnabled": true
}Responses
200
user (same shape as GET /auth/me)
- idstring
- emailstring
- namestring
- avatarUrlstring
- slugstring?
- publicProfileEnabledboolean
Whether the public profile card is visible at /public/users/:slug
- capabilitiesstring[]
Example
{
"id": "string",
"email": "string",
"name": "string",
"avatarUrl": "string",
"slug": "string",
"publicProfileEnabled": true,
"capabilities": [
"string"
]
}400
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}401
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}404
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}409
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}Code examples
cURL
curl -X PATCH "https://api.agenticdeveloperhub.com/auth/me" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"slug": "string",
"avatarUrl": "string",
"publicProfileEnabled": true
}'JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/auth/me", {
method: "PATCH",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: "{\n \"name\": \"string\",\n \"slug\": \"string\",\n \"avatarUrl\": \"string\",\n \"publicProfileEnabled\": true\n}",
});
const data = await res.json();