Docs
Search docs

Get a user profile

GET/api/users/{handle}

getUserProfile

Returns public profile information for the given handle.

Authentication is not described for this operation in the spec — that does not mean it is public. Check tokens and scopes.

curl

curl -X GET 'https://neosource.dev/api/users/HANDLE'

fetch

fetch("https://neosource.dev/api/users/HANDLE", {
  method: "GET",
});

Path parameters

handlerequired

Username slug.

string

Responses

200User profile

application/json

PublicUserProfile

object

Another account's public profile, as `GET /api/users/{handle}` returns it to any caller, anonymous included. Carries no self-only field.

avatar_url

string | null

Same shape and origin as [`UserResponse::avatar_url`].

display_namerequired

string

handlerequired

string

user_idrequired

string

Standard errors

Bodies documented once for the whole API — see standard errors.

  • 400Bad Request — one of: invalid_input
  • 404Not Found — one of: not_found
  • 429Rate limited — retry after the `Retry-After` header
  • 500Internal server error
  • 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
  • 504Gateway timeout — the request exceeded the server's handling budget