Skip to main content
POST
/
api
/
snapshot
/
proposals
/snapshot/proposals
curl --request POST \
  --url https://api.anysite.io/api/snapshot/proposals \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "proposal": "<string>",
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "@type": "SnapshotProposal",
    "ipfs": "<string>",
    "author": "<string>",
    "space": {
      "id": "<string>",
      "@type": "SnapshotSpaceRef",
      "name": "<string>",
      "image": "<string>",
      "network": "<string>"
    },
    "text": "<string>",
    "discussion_url": "<string>",
    "web_url": "<string>",
    "app": "<string>",
    "type": "<string>",
    "state": "<string>",
    "privacy": "<string>",
    "network": "<string>",
    "symbol": "<string>",
    "choices": [],
    "quorum": 123,
    "quorum_type": "<string>",
    "snapshot_block": "<string>",
    "scores": [],
    "scores_by_strategy": [],
    "scores_total": 123,
    "scores_total_value": 123,
    "vp_value_by_strategy": [],
    "scores_state": "<string>",
    "scores_updated_at": 123,
    "vote_count": 123,
    "is_flagged": true,
    "strategies": [],
    "validation": {
      "name": "<string>",
      "@type": "SnapshotSpaceValidation",
      "params": {}
    },
    "plugins": {},
    "created_at": 123,
    "updated_at": 123,
    "start_at": 123,
    "end_at": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
proposal
string
required

Proposal id (hash)

Minimum string length: 1
Example:

"0x3c5d6f9f9b3f0e2c1f4f5e6d7c8b9a0f1e2d3c4b5a6978899aabbccddeeff0011"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
@type
string
default:SnapshotProposal
ipfs
string | null
author
string | null
space
object
text
string | null
discussion_url
string | null
web_url
string | null
app
string | null
type
string | null
state
string | null
privacy
string | null
network
string | null
symbol
string | null
choices
string[]
quorum
number | null
quorum_type
string | null
snapshot_block
string | null
scores
number[]
scores_by_strategy
any[]
scores_total
number | null
scores_total_value
number | null
vp_value_by_strategy
number[]
scores_state
string | null
scores_updated_at
integer | null
vote_count
integer | null
is_flagged
boolean | null
strategies
object[]
validation
object
plugins
object
created_at
integer | null
updated_at
integer | null
start_at
integer | null
end_at
integer | null