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.

AuthLogin required

Request body

slugstringrequired

3–20 characters, alphanumerics, hyphens and underscores only. Reserved slugs are rejected, and a slug already in use returns 400.

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"
}