---
title: "Propose an attestation"
method: POST
path: "/v1/oracle/attestations"
tags: ["Oracle"]
---

# Propose an attestation

`POST /v1/oracle/attestations`

## Request

- Base URL: `https://origin.predictasiax.com`
- URL: `https://origin.predictasiax.com/v1/oracle/attestations`
- Auth: API key in header `X-API-Key`

Requires an api-key with the oracle:write scope and a funded PAX bond. The market must be closed and not yet resolved.

## Request body

- ProposeAttestationRequest
  - `market_id` string, required
  - `proposed_outcome` string, required: The outcome the proposer attests resolves the market.
  - `evidence_urls` string[]
  - `provider_id` string: Optional provider to credit the attestation to.

## Response `201`

Attestation proposed; proposer bond locked.

- OracleAttestation: An optimistic-oracle attestation and its dispute lifecycle.
  - `id` string
  - `market_id` string
  - `proposer_user_id` string
  - `provider_id` string, nullable
  - `proposed_outcome` string
  - `evidence_urls` string[]
  - `bond_pax` string: Decimal string with up to 6 fractional digits
  - `state` 'proposed' | 'disputed' | 'resolved'
  - `liveness_expires_at` string, date-time, nullable
  - `disputer_user_id` string, nullable
  - `disputer_outcome` string, nullable
  - `disputer_evidence_urls` string[], nullable
  - `disputer_bond_pax` string, nullable
  - `disputed_at` string, date-time, nullable
  - `resolved_outcome` string, nullable
  - `proposer_won` boolean, nullable
  - `reward_pax` string: Decimal string with up to 6 fractional digits
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable
  - `finalized_at` string, date-time, nullable

## Other responses

- `402`: Insufficient available PAX bond.
- `403`: Key lacks the oracle:write scope.
- `404`: Market not found.
- `409`: Market already resolved/cancelled, or not closed yet.

---

[API](https://skmtc.dev/predictasiax/apis/predictasiax-network-api.md) · [All operations](https://skmtc.dev/predictasiax/apis/predictasiax-network-api/llms.txt) · [OpenAPI document](https://skmtc.dev/predictasiax/apis/predictasiax-network-api/revisions/c2ed1a03ce79?raw)
