Skip to main content
GET
/
{org}
/
sync-runs
List sync runs
curl --request GET \
  --url https://api.mesa.dev/v1/{org}/sync-runs \
  --header 'Authorization: Bearer <token>'
{
  "next_cursor": "<string>",
  "has_more": true,
  "sync_runs": [
    {
      "id": "<string>",
      "repo_id": "<string>",
      "direction": "pull",
      "status": "queued",
      "attempt": 123,
      "stats": {
        "refs": [
          {
            "name": "<string>",
            "before": "<string>",
            "after": "<string>",
            "outcome": "updated"
          }
        ]
      },
      "error": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "started_at": "2023-11-07T05:31:56Z",
      "finished_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.mesa.dev/llms.txt

Use this file to discover all available pages before exploring further.

Required scope: read

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org
string
required
Minimum string length: 1

Query Parameters

cursor
string

Opaque pagination cursor from a previous response

limit
integer

Maximum number of items to return (max 100)

Required range: 1 <= x <= 100
repo
string

Filter sync runs by repository name

Minimum string length: 1

Response

Sync run list

next_cursor
string | null
required

Cursor for the next page, or null when no more results remain

has_more
boolean
required

Whether another page of results is available

sync_runs
object[]
required