# NIGHTSHIFT Swarm Order Executor

> NIGHTSHIFT Swarm Order Executor is a paid API for AI agents from getnightshift.tech, paid per call via x402, $3/call, status unknown (last checked 2026-10-26).

Executes a previously quoted NIGHTSHIFT AI swarm order by submitting a quoteId and completing the x402 micropayment to start the job running.

## Facts

- Endpoint: GET https://getnightshift.tech/api/v1/swarm/order?utm_source=zero.xyz
- Price: $3/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nightshift-swarm-order-executor-a11b565e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5rURVamRWat2HV0pwoekS

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nightshift-swarm-order-executor-a11b565e
```

Example prompt: I already got a quote from NIGHTSHIFT — the quoteId is 3f2b1a00-0000-4000-8000-abcdef012345 — go ahead and submit the order and pay for it so the swarm job starts running.

## When to prefer this

Use this endpoint when you have already obtained a valid quoteId from a NIGHTSHIFT free quote endpoint and are ready to commit payment (3 USDC via x402) to execute the swarm agent job. This is the execution step in a two-step quote-then-order flow. Prefer this over generic compute endpoints when you specifically want to run tasks within the NIGHTSHIFT/IMD AI agent swarm ecosystem.

## Known failure modes

- Invalid or expired quoteId returns an error — quotes may have a TTL and must be used before expiry
- Payment failure or insufficient USDC balance causes the order not to start
- Malformed UUID in quoteId field results in a validation error
- Network congestion on Base (eip155:8453) may delay payment confirmation
- Attempting to call without a valid x402 payment header results in a 402 Payment Required response

## How this service works

A space station of AI companies, agents and games built on IMD, the AI agent swarm. Pick a room: Breakroom, Geek Room, Info, HR &amp; Economy, Command.

## Output

Returns a JSON object containing the orderId (unique job identifier), status (e.g. 'running'), an orderToken (private token to track or retry the order), and payment details including the transaction hash, network (e.g. eip155:8453 = Base), and price in USD. The orderToken is idempotent — retrying with the same signed payment returns the same token.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "quoteId"
     ],
     "properties": {
      "quoteId": {
       "type": "string",
       "description": "The UUID returned by a free checked quote; required to pay. Example: 00000000-0000-4000-8000-000000000000"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "orderId",
      "status",
      "payment"
     ],
     "properties": {
      "status": {
       "type": "string"
      },
      "orderId": {
       "type": "string"
      },
      "payment": {
       "type": "object"
      },
      "orderToken": {
       "type": "string",
       "description": "Private status token. Keep it; an identical signed payment retry returns the same token."
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "running",
  "orderId": "sd_example",
  "payment": {
   "tx": "0x…",
   "network": "eip155:8453",
   "priceUsd": 4.9
  },
  "orderToken": "keep-this-token"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nightshift-swarm-order-executor-a11b565e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from getnightshift.tech](https://www.zero.xyz/host/getnightshift.tech/llms.txt)
