at.happyproto.admin.listJobs

happyproto.at

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "adminJob": {
      "description": "A background job as staff see it. Never carries its input or session fields.",
      "properties": {
        "completedAt": {
          "format": "datetime",
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "createdBy": {
          "description": "Who started it.",
          "format": "did",
          "type": "string"
        },
        "error": {
          "description": "Why the job failed, as the job reported it.",
          "type": "string"
        },
        "id": {
          "description": "A UUID.",
          "type": "string"
        },
        "jobType": {
          "type": "string"
        },
        "progress": {
          "description": "The job's last progress report.",
          "type": "unknown"
        },
        "result": {
          "description": "What the job returned, once completed.",
          "type": "unknown"
        },
        "startedAt": {
          "format": "datetime",
          "type": "string"
        },
        "status": {
          "knownValues": [
            "pending",
            "running",
            "paused",
            "pausing",
            "cancelling",
            "completed",
            "failed",
            "cancelled"
          ],
          "type": "string"
        }
      },
      "required": [
        "id",
        "status",
        "jobType",
        "createdBy",
        "createdAt"
      ],
      "type": "object"
    },
    "main": {
      "description": "Background jobs across every user, newest first. Staff only.",
      "errors": [
        {
          "description": "This endpoint requires an authenticated caller.",
          "name": "AuthRequired"
        },
        {
          "description": "The caller is not HappyProto staff.",
          "name": "Forbidden"
        },
        {
          "description": "status names an unknown status, or limit is not a whole number from 1 to 200.",
          "name": "InvalidRequest"
        },
        {
          "description": "The jobs could not be read.",
          "name": "Upstream"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "jobs": {
              "items": {
                "ref": "#adminJob",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "jobs"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "jobType": {
            "description": "Only jobs of this type.",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          },
          "status": {
            "description": "Comma-separated statuses to include. Defaults to pending,running,pausing,cancelling.",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "at.happyproto.admin.listJobs",
  "lexicon": 1
}

Validate Record

Validate a record against at.happyproto.admin.listJobs

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:mo7vq4jbioxwafy5zkcc3eux
CID
bafyreichu3nyn5vmdhi3ijgcjbofz46zxfw66otigbbhkkwqqagw7lpvli
Indexed At
2026-10-19 18:20 UTC
AT-URI
at://did:plc:mo7vq4jbioxwafy5zkcc3eux/com.atproto.lexicon.schema/at.happyproto.admin.listJobs

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • One of the caller's own background jobs, such as the one a change to an instance started. Customers only.

Lexicon Garden

@