gitora.devGitora.dev documentation
Menu

Users

Get a profile

GET /api/v1/users/{username}

Returns the public profile of an account: what anyone sees at https://gitora.dev/{username}, and nothing else about the account.

AudienceAny client
CredentialsNone needed. An app session or a personal access token is accepted, as Authorization: Bearer; a token is also accepted as the password of Authorization: Basic
Token permissionNone: any active token
Recently confirmed sessionNot needed
LimitsNone of its own

A browser's session cookie is not a credential here, and is ignored.

Parameters

NameInDescription
usernamepathThe username of the account

Capitals do not matter: /api/v1/users/ada and /api/v1/users/Ada give the same profile. A username that its account has since changed gives the account's current profile. In both cases the answer comes at once, without a redirect, and its username is the current one in its owner's capitals.

Answer

200 OK, with Cache-Control: no-store and exactly these keys:

KeyTypeDescription
usernamestringThe username, in its owner's capitals
displayNamestring or nullThe display name; null without one
avatarUrlstring or nullThe address of the avatar; null without one
joinedstringThe month the account was created, as YYYY-MM, in UTC
urlstringThe address of the profile on the web
repositoriesobjectThe repositories section: see Sections. Today always { "status": "not_available" }
organizationsobjectThe organizations section: see Sections. Today always { "status": "not_available" }

A display name is whatever its owner typed. Show it as plain text, never as HTML.

Sections

repositories and organizations are both a section: an object whose status says what it holds.

statusOther keysMeaning
not_availableNoneThe capability does not exist on Gitora.dev yet. This is what both sections are today
availabletotal, items, nexttotal is how many items you may see; items is the first page of them; next is null on the last page
failedNoneThe section could not be loaded. The rest of the profile is complete: ask again later

Read any other status as failed: a later version of Gitora.dev may add one.

When a section is available:

  • total and items count only what the caller may see. A total of 0 means there is nothing to show to you, and says nothing about whether hidden items exist.
  • The items and the meaning of next are given by each section when it becomes available. Treat next as opaque.

Gitora.dev's own apps show the statuses this way:

statusWhat the apps say
not_available"Repositories are not available on Gitora.dev yet." (organizations alike)
available, total is 0"No repositories to show.", or to the profile's owner "You have no repositories yet."
available, itemsThe count, such as "1 repository" or "3 repositories", the items, and "View all repositories" when there are more
failed, or a status they do not know"Repositories could not be loaded." and Try again

A section that fails never fails the request: the answer is still 200 OK.

Errors

StatusCodeWhen
401unauthenticatedThe request has an Authorization header that is not a valid session or token
401token_expiredThe token has expired, or never existed
401token_revokedThe token was revoked
404profile_not_foundThere is no profile under that name

A credential that is refused is always a 401, never an answer as to an anonymous visitor. Remove the Authorization header to make the request without one.

The 404 is the same whether the name was never used, cannot be a username, or belongs to an account that was deleted or whose email address is not verified yet.

Example

curl https://gitora.dev/api/v1/users/ada
{
  "username": "Ada",
  "displayName": null,
  "avatarUrl": null,
  "joined": "2026-11",
  "url": "https://gitora.dev/Ada",
  "repositories": { "status": "not_available" },
  "organizations": { "status": "not_available" }
}