Set profile visibility
Turn the account's Public Profile on or off. While it is off, the public routes answer as though the Handle does not exist, so nothing is disclosed about the account.
/v1/profile/visibilityTurn the account's Public Profile on or off. While it is off, the public routes answer as though the Handle does not exist, so nothing is disclosed about the account.
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.
Value in
- "private"
- "public"
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/profile/visibility" \ -H "Idempotency-Key: 8f14e45f-ea4e-4a1f-9c2b-6f0a1d3c5e77" \ -H "Content-Type: application/json" \ -d '{ "visibility": "private" }'{ "handle": "string", "visibility": "private", "createdAt": "string", "updatedAt": "string"}{ "_tag": "Unauthorized", "message": "string"}{ "_tag": "ProfileNotFoundError", "message": "string"}{ "_tag": "RateLimitExceeded", "message": "string"}Rename the account handle PATCH
Change the authenticated account's Handle. The old Handle is released and the Public Profile moves to the new address, so any link to the old one stops resolving.
Get a public profile GET
Read one person's Public Profile by Handle. Unauthenticated, and bucketed on the client address rather than on a credential. Returns `404` for a Handle that does not exist and for one whose owner has Profile Visibility off, so the two cannot be told apart.