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.
| Audience | Any client |
| Credentials | None 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 permission | None: any active token |
| Recently confirmed session | Not needed |
| Limits | None of its own |
A browser's session cookie is not a credential here, and is ignored.
Parameters
| Name | In | Description |
|---|---|---|
username | path | The 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:
| Key | Type | Description |
|---|---|---|
username | string | The username, in its owner's capitals |
displayName | string or null | The display name; null without one |
avatarUrl | string or null | The address of the avatar; null without one |
joined | string | The month the account was created, as YYYY-MM, in UTC |
url | string | The address of the profile on the web |
repositories | object | The repositories section: see Sections. Today always { "status": "not_available" } |
organizations | object | The 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.
status | Other keys | Meaning |
|---|---|---|
not_available | None | The capability does not exist on Gitora.dev yet. This is what both sections are today |
available | total, items, next | total is how many items you may see; items is the first page of them; next is null on the last page |
failed | None | The 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:
totalanditemscount only what the caller may see. Atotalof0means there is nothing to show to you, and says nothing about whether hidden items exist.- The items and the meaning of
nextare given by each section when it becomes available. Treatnextas opaque.
Gitora.dev's own apps show the statuses this way:
status | What 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, items | The 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
| Status | Code | When |
|---|---|---|
401 | unauthenticated | The request has an Authorization header that is not a valid session or token |
401 | token_expired | The token has expired, or never existed |
401 | token_revoked | The token was revoked |
404 | profile_not_found | There 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" }
}