Claim a handle
Claim a Handle for the authenticated account. The Handle becomes the address of the account's Public Profile at `/u/{handle}`. Returns `409` if another account claimed it first.
/v1/profile/handleClaim a Handle for the authenticated account. The Handle becomes the address of the account's Public Profile at /u/{handle}. Returns 409 if another account claimed it first.
Authorization
bearer Personal API Key or App Session bearer token.
In: header
Header Parameters
A unique value identifying this write. The first response for a given key is recorded for 24 hours and replayed for every later request that repeats it, so a retry after a timeout cannot create a duplicate. Replayed responses carry Idempotent-Replay: true. A key whose original request is still running gets 409. Use a UUID or a ULID, and reuse a key only when retrying the same request.
length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/profile/handle" \ -H "Idempotency-Key: 8f14e45f-ea4e-4a1f-9c2b-6f0a1d3c5e77" \ -H "Content-Type: application/json" \ -d '{ "handle": "string" }'{ "handle": "string", "visibility": "private", "createdAt": "string", "updatedAt": "string"}{ "_tag": "InvalidHandleError", "message": "string"}{ "_tag": "Unauthorized", "message": "string"}{ "_tag": "HandleConflictError", "message": "string"}{ "_tag": "RateLimitExceeded", "message": "string"}Check whether a handle is free GET
Report whether a Handle can be claimed, before trying to claim it. A Handle that is reserved or already taken is reported unavailable.
Get the account profile GET
Read the authenticated account's Handle and Profile Visibility. Requires an App Session: the v1 REST API does not expose account administration through an API Key.