Skip to main content

Account

Endpoints for the user behind a Bearer token. For the team-level container, see Environment.

Get the signed-in user

GET /user/self

Scope: user

Resolves the credentials to a user record — the REST equivalent of fused.api.whoami() and fused whoami.

FieldTypeDescription
idstringUser id
namestringDisplay name
emailstring | nullEmail address
handlestring | nullPublic handle, used in canvas and UDF URLs
execution_environment_idstring | nullEnvironment the user belongs to
signup_datestring | nullSignup timestamp
handle_last_changedstring | nullWhen the handle was last changed
note

This endpoint requires a Bearer token. A service account token resolves to an environment rather than a user, so it returns 403 Forbidden — use GET /execution-env/self instead.

Update the signed-in user

POST /user/self

Scope: user

Updates your own profile. Only two fields may be changed:

FieldTypeDescription
namestringDisplay name
handlestringPublic handle
curl -X POST \
-H "Authorization: Bearer $FUSED_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"handle": "my-handle"}' \
"https://www.fused.io/server/v1/user/self"

Handle changes are validated:

StatusCause
409 ConflictThe handle is already taken, or is reserved
422 Unprocessable EntityThe handle is an empty string
401 UnauthorizedThe request attempted to change a field you may not set — anything other than name and handle
warning

Your handle appears in canvas and UDF URLs. Changing it can break links that address your work by handle.

See also