Skip to the content
Forge

Account

You, the terms you accept, and what Forge says about itself publicly.

Every path is under /api/v1; see the API for authenticating, errors and rate limits, and the schemas for the bodies.

This API description

GET /api/v1/openapi.yaml (no sign-in needed)

Answers:

  • 200: OK, object

The caller, their organizations and permissions

GET /api/v1/me

Answers:

  • 200: OK, Me

Errors: 401 (how errors look).

Delete the caller's Forge account (browser sessions only)

DELETE /api/v1/me

confirm must repeat the username (or the email without one; else 422 confirm_mismatch). Refused with 409 sole_owner while the caller is the only owner of a team organization, and with 409 last_admin while the caller is the last who can manage platform roles. Memberships and sessions go at once, the personal space is purged without a grace period, and the user record keeps only its id. The authsvc account stays; signing in with it again starts a new Forge account.

Body (application/json): DeleteAccount.

Answers:

  • 204: Deleted

Errors: 400, 401, 403, 409, 422 (how errors look).

Permissions a role can contain, with the levels they apply to

GET /api/v1/permissions

Answers:

  • 200: OK, object with the fields below
Field Type Description
permissions array of PermissionInfo, required

Errors: 401, 403 (how errors look).

The current Terms of Service and Acceptable Use Policy

GET /api/v1/legal (no sign-in needed)

Answers:

  • 200: OK, object with the fields below
Field Type Description
documents array of LegalDocument, required

Where the status page is and where to report a vulnerability

GET /api/v1/site (no sign-in needed)

Public, for the pages anyone may open: FORGE_STATUS_URL, the external status page, and FORGE_SECURITY_CONTACT, also in /.well-known/security.txt. Empty strings when not configured.

Answers:

  • 200: OK, object with the fields below
Field Type Description
security_contact string, required A mailto: or https: URI.
status_url string, required

Report abuse of Forge; anonymous allowed, signed-in reporters are recorded

POST /api/v1/abuse-reports (no sign-in needed)

Limited per client IP (by default 3 at once, then 10 an hour); the body is at most 16 KiB.

Body (application/json): AbuseReportInput.

Answers:

  • 202: Received

Errors: 400, 422, 429 (how errors look).

POST /api/v1/legal/accept

Every document must be listed with its current version; otherwise 409 terms_outdated (a new version came out), and the caller should load /legal again.

Body (application/json): object.

Field Type Description
documents array of object, required

Answers:

  • 204: Accepted

Errors: 400, 401, 403, 409 (how errors look).