Skip to main content
GET
/
api
/
x402
/
jobs
/
{jobId}
/
accepts
curl -X GET "https://wurkapi.fun/api/x402/jobs/89e57c15/accepts" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Accept: application/json"
{
  "x402Version": 1,
  "accepts": [
    {
      "scheme": "exact",
      "network": "solana",
      "maxAmountRequired": "4000000",
      "resource": "https://wurkapi.fun/api/x402/jobs/89e57c15/pay",
      "description": "",
      "mimeType": "",
      "payTo": "SAT8g2xU7AFy7eUmNJ9SNrM6yYo7LDCi13GXJ8Ez9kC",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "maxTimeoutSeconds": 60,
      "extra": {
        "feePayer": "2wKupLR9q6wXYppw8Gr2NvWxKBUqm4PPJKkQfoxHDBg4"
      }
    }
  ]
}

Authentication

X-API-Key
string
required
Your WURK API key

Path Parameters

jobId
string
required
The job ID (8 character identifier returned from job creation)

Response

Already Paid

ok
boolean
Always true when successful
alreadyConfirmed
boolean
true if the job is already paid
jobId
string
The job ID

Payment Required

x402Version
number
x402 protocol version (currently 1)
accepts
array
Array of payment requirement objects with fields:
  • scheme: Payment scheme ("exact")
  • network: Blockchain network ("solana")
  • maxAmountRequired: Amount in smallest unit (e.g., "4000000" for 4 USDC)
  • resource: The payment endpoint URL
  • payTo: Recipient wallet address
  • asset: Token mint address (USDC: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v)
  • maxTimeoutSeconds: Payment timeout (typically 60)
  • extra: Additional data including feePayer address
curl -X GET "https://wurkapi.fun/api/x402/jobs/89e57c15/accepts" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Accept: application/json"
{
  "x402Version": 1,
  "accepts": [
    {
      "scheme": "exact",
      "network": "solana",
      "maxAmountRequired": "4000000",
      "resource": "https://wurkapi.fun/api/x402/jobs/89e57c15/pay",
      "description": "",
      "mimeType": "",
      "payTo": "SAT8g2xU7AFy7eUmNJ9SNrM6yYo7LDCi13GXJ8Ez9kC",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "maxTimeoutSeconds": 60,
      "extra": {
        "feePayer": "2wKupLR9q6wXYppw8Gr2NvWxKBUqm4PPJKkQfoxHDBg4"
      }
    }
  ]
}