Skip to content
GitmoapAPIBeta
Shipreleases
GET/repositories/{repo_id}/releases/latest

Get the newest published, non-prerelease release

get_latest_release
  • release:read
    A token needs the release:read scope: View releases and download release assetsGranted by mcp_agent, mcp_agent_write, read_api, read_repository, write_api, write_repository.Every operation this scope unlocks

Drafts and prereleases are never returned here, so this is the release to point people at. A repository with no published release answers not found. Anyone who can read the repository's releases may call it.

Parameters

Path
  • repo_idRepositoryId (string · uuid)Repository ID

Responses

200Latest releaseapplication/json
  • authorActorSummaryWho created the release.
  • commit_shaCommitHash (string)The commit the tag pointed to when the release was created.
  • created_atstring
  • nameReleaseName (string)
  • repository_idRepositoryId (string · uuid)
  • tag_nameTagName (string)
  • updated_atstring
  • assetsarray of ReleaseAssetoptionalThe release's files. Included when a single release is fetched.
    • The ReleaseAsset schema
    • asset_idReleaseAssetId (string · uuid)
    • content_typestring
    • created_atstring
    • nameAssetName (string)
    • repository_idRepositoryId (string · uuid)
    • sizeinteger · int640–∞
    • stateAssetStateuploadingavailableWhether a release file has been uploaded: uploading (an upload URL was issued, but the upload has not been confirmed yet) or available.
    • tag_nameTagName (string)
    • updated_atstring
    • uploaderActorSummaryWho uploaded the file.
    • download_urlstring or nulloptionalWhere to download the file.
  • bodyReleaseBody (string) or nulloptional
  • draftbooleanoptionalWhether the release is an unpublished draft, visible only to people with Developer access or above.
  • prereleasebooleanoptionalWhether the release is marked as a pre-release. A pre-release is never returned as the latest release.
  • published_atstring or nulloptionalSet when the release leaves draft.
  • tarball_urlstring or nulloptionalWhere to download the tagged source as a .tar.gz archive.
  • versioninteger · int64optional0–∞Increases with every change. Send it with an update so that a change made since you read the release is not overwritten.
  • zipball_urlstring or nulloptionalWhere to download the tagged source as a .zip archive.
200 exampleSynthesized example
{
"author": {
"email": "tomas@acme.example",
"id": "id-d228",
"username": "mara",
"avatar_url": "https://gitmoap.example/acme/1165c6cc"
},
"commit_sha": "04f5d4c5fad2a057517ca21172cd1b8af9daff6d",
"created_at": "2026-10-10T17:44:10Z",
"name": "payments-api",
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"tag_name": "payments-api",
"updated_at": "2026-10-14T22:27:49Z",
"assets": [
{
"asset_id": "e0fb36d6-9547-4c09-a630-41bb797df02b",
"content_type": "content-type-4554",
"created_at": "2026-10-08T09:53:43Z",
"name": "payments-api",
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"size": 2,
"state": "uploading",
"tag_name": "payments-api",
"updated_at": "2026-10-08T17:12:41Z",
"uploader": {
"email": "tomas@acme.example",
"id": "id-a82c",
"username": "lin"
}
},
{
"asset_id": "2b8163f0-d402-42df-b8ef-d06f9fb30d11",
"content_type": "content-type-7b10",
"created_at": "2026-10-12T22:34:23Z",
"name": "payments-api",
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"size": 6,
"state": "uploading",
"tag_name": "payments-api",
"updated_at": "2026-10-13T12:31:51Z",
"uploader": {
"email": "tomas@acme.example",
"id": "id-c23c",
"username": "lin"
}
}
],
"body": "Renders each region as density contours of its operations.",
"draft": false,
"prerelease": false,
"published_at": "2026-10-14T03:14:39Z",
"tarball_url": "https://gitmoap.example/acme/f9d063ae",
"version": 71,
"zipball_url": "https://gitmoap.example/acme/996c9b08"
}
400Bad request — a path parameter is not a well-formed value of its typeapplication/json
Error codes
  • BAD_REQUESTThe request is malformed: a parameter or a body field is not a well-formed value of its type
  • errorErrorBody
    • The ErrorBody schema
    • codestringThe coarse category, tied to the status: NOT_FOUND, CONFLICT, INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all.
    • messagestringWhat went wrong, for a person. Written to be read, not parsed: match on reason or code.
    • fieldstring or nulloptionalOn a 400 that refused one field's value, the field, as its JSON path: email, items[0].name. Put the message under that input. Absent on every other error.
    • reasonstring or nulloptionalThe specific code, when the error has one: LAST_ORGANIZATION_OWNER, BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
400 exampleSynthesized example
{
"error": {
"code": "code-b6b4",
"message": "Pin a page's payload to the build that rendered it"
}
}
401Unauthenticated — no credential, or an invalid oneapplication/json
Error codes
  • UNAUTHORIZEDNo credential was sent, or the one sent is invalid, expired or revoked
  • errorErrorBody
    • The ErrorBody schema
    • codestringThe coarse category, tied to the status: NOT_FOUND, CONFLICT, INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all.
    • messagestringWhat went wrong, for a person. Written to be read, not parsed: match on reason or code.
    • fieldstring or nulloptionalOn a 400 that refused one field's value, the field, as its JSON path: email, items[0].name. Put the message under that input. Absent on every other error.
    • reasonstring or nulloptionalThe specific code, when the error has one: LAST_ORGANIZATION_OWNER, BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
401 exampleSynthesized example
{
"error": {
"code": "code-1f43",
"message": "Stream pipeline status into the run header"
}
}
403Forbidden — the caller's access level or token scope is insufficientapplication/json
Error codes
  • FORBIDDENYou are signed in but may not do this here; reason names the permission or the rule that refused it
  • INSUFFICIENT_SCOPEThe access token lacks the scope this operation needs; required_scope names it
  • PERMISSION_REQUIREDYou need a permission you do not hold here; the message names it
  • errorErrorBody
    • The ErrorBody schema
    • codestringThe coarse category, tied to the status: NOT_FOUND, CONFLICT, INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all.
    • messagestringWhat went wrong, for a person. Written to be read, not parsed: match on reason or code.
    • fieldstring or nulloptionalOn a 400 that refused one field's value, the field, as its JSON path: email, items[0].name. Put the message under that input. Absent on every other error.
    • reasonstring or nulloptionalThe specific code, when the error has one: LAST_ORGANIZATION_OWNER, BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
403 exampleSynthesized example
{
"error": {
"code": "code-1b38",
"message": "Pin a page's payload to the build that rendered it"
}
}
404No published releaseapplication/json
Error codes
  • NOT_FOUNDThe resource does not exist — or exists and you cannot see it: a private resource you have no access to answers exactly as an absent one does
  • errorErrorBody
    • The ErrorBody schema
    • codestringThe coarse category, tied to the status: NOT_FOUND, CONFLICT, INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all.
    • messagestringWhat went wrong, for a person. Written to be read, not parsed: match on reason or code.
    • fieldstring or nulloptionalOn a 400 that refused one field's value, the field, as its JSON path: email, items[0].name. Put the message under that input. Absent on every other error.
    • reasonstring or nulloptionalThe specific code, when the error has one: LAST_ORGANIZATION_OWNER, BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
404 exampleSynthesized example
{
"error": {
"code": "code-417e",
"message": "Draw the region map from operation density"
}
}

CLI

gitmoap releases get-latest

  • --repo-ididRepository ID (id or owner/repo path)

Used in these guides