Account
curl -X GET "https://example.com/v1/accounts/installable""abc123"List the authenticated viewer's unread, non-archived inbox notifications.
Authorization
bearerAuth In: header
Query Parameters
Maximum unread notifications to return. The total count is not limited.
int641 <= value <= 10020Response Body
application/json
curl -X GET "https://example.com/v1/inbox/unread?limit=2"{ "items": [ { "actorLogin": "abc123", "draft": false, "number": 1, "owner": "aa", "provider": "aa", "reason": "aa", "repo": "aa", "state": "abc123", "subjectId": "aa", "targetKind": "issue", "title": "abc123", "updatedAt": "aa" } ], "total": 1}curl -X GET "https://example.com/v1/me/org-invitations""abc123"Authorization
bearerAuth In: header
Path Parameters
Pending invitation id.
int64Response Body
application/json
curl -X POST "https://example.com/v1/me/org-invitations/1/accept""abc123"Authorization
bearerAuth In: header
Path Parameters
Pending invitation id.
int64Response Body
application/json
curl -X POST "https://example.com/v1/me/org-invitations/1/decline""abc123"curl -X GET "https://example.com/v1/me/repo-invitations""abc123"Authorization
bearerAuth In: header
Path Parameters
Pending repository invitation id.
int64Response Body
application/json
curl -X POST "https://example.com/v1/me/repo-invitations/1/accept""abc123"Authorization
bearerAuth In: header
Path Parameters
Pending repository invitation id.
int64Response Body
application/json
curl -X POST "https://example.com/v1/me/repo-invitations/1/decline""abc123"Authorization
bearerAuth In: header
Path Parameters
Platform user id. Must match the authenticated viewer id.
Response Body
application/json
curl -X GET "https://example.com/v1/users/abc123""abc123"Authorization
bearerAuth In: header
Path Parameters
Forgejo login whose Git SSH token should be rotated.
1 <= lengthResponse Body
application/json
curl -X POST "https://example.com/v1/users/aa/git-ssh-token/rotate""abc123"curl -X GET "https://example.com/v1/viewer"{ "admin": false, "avatarUrl": "abc123", "bio": "abc123", "company": "abc123", "email": "abc123", "id": "abc123", "location": "abc123", "login": "abc123", "name": "abc123", "pronouns": "abc123", "settings": "abc123", "website": "abc123"}Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PATCH "https://example.com/v1/viewer" \ -H "Content-Type: application/json" \ -d '{ "bio": "aaa", "company": "aaa", "location": "aaa", "name": "aaa", "pronouns": "aaa", "website": "aaa" }'{ "admin": false, "avatarUrl": "abc123", "bio": "abc123", "company": "abc123", "email": "abc123", "id": "abc123", "location": "abc123", "login": "abc123", "name": "abc123", "pronouns": "abc123", "settings": "abc123", "website": "abc123"}curl -X DELETE "https://example.com/v1/viewer""abc123"curl -X DELETE "https://example.com/v1/viewer/avatar"{ "admin": false, "avatarUrl": "abc123", "bio": "abc123", "company": "abc123", "email": "abc123", "id": "abc123", "location": "abc123", "login": "abc123", "name": "abc123", "pronouns": "abc123", "settings": "abc123", "website": "abc123"}Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PUT "https://example.com/v1/viewer/avatar" \ -H "Content-Type: application/json" \ -d '{ "image": "aa" }'{ "admin": false, "avatarUrl": "abc123", "bio": "abc123", "company": "abc123", "email": "abc123", "id": "abc123", "location": "abc123", "login": "abc123", "name": "abc123", "pronouns": "abc123", "settings": "abc123", "website": "abc123"}Provision or refresh the authenticated viewer and their Forgejo identity.
Authorization
bearerAuth In: header
Response Body
application/json
curl -X POST "https://example.com/v1/viewer/provision"{ "admin": false, "avatarUrl": "abc123", "bio": "abc123", "company": "abc123", "email": "abc123", "id": "abc123", "location": "abc123", "login": "abc123", "name": "abc123", "pronouns": "abc123", "settings": "abc123", "website": "abc123"}Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PATCH "https://example.com/v1/viewer/settings" \ -H "Content-Type: application/json" \ -d '{ "settings": "abc123" }'{ "admin": false, "avatarUrl": "abc123", "bio": "abc123", "company": "abc123", "email": "abc123", "id": "abc123", "location": "abc123", "login": "abc123", "name": "abc123", "pronouns": "abc123", "settings": "abc123", "website": "abc123"}Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/viewer/username" \ -H "Content-Type: application/json" \ -d '{ "newLogin": "aa" }'{ "admin": false, "avatarUrl": "abc123", "bio": "abc123", "company": "abc123", "email": "abc123", "id": "abc123", "location": "abc123", "login": "abc123", "name": "abc123", "pronouns": "abc123", "settings": "abc123", "website": "abc123"}