Users / Profile

Set own slug

POST/users/me/slug

Set the slug used in the profile URL. A slug can only be changed once every 2 weeks: changing it to a different value within 14 days of the previous change returns 400 (errorCode 10012) with nextChangeableAt (UTC) in the response. Sending the current value is exempt from the limit and returns 200 without updating. Reserved slugs and slugs already in use are not distinguished: both return 400 (errorCode 10011). Requests are rate limited per user (10 per minute, 60 per hour); exceeding the limit returns 429.

AuthLogin required

Request body

slugstringrequired

3–20 characters, alphanumerics, hyphens and underscores only. Reserved slugs and slugs already used by another user, organization, community or event return 400 (errorCode 10011).

Response

FieldTypeDescription
idstringUser ID.
slugstringThe slug after the update.
Request
curl https://api.4s.link/users/me/slug \
-X POST \
-H "Authorization: Bearer 4s_at_..." \
-H "Content-Type: application/json" \
-d '{
"slug": "taro"
}'
Example response
{
"id": "a1b2c3d4-...",
"slug": "taro"
}