Skip to content

installs_poll

POST
/consent/token
curl --request POST \
--url https://api.canopyhq.dev/consent/token \
--header 'Content-Type: application/json' \
--data '{ "poll_secret": "example" }'
Media typeapplication/json
object
poll_secret
required

What the vendor polls with. Issued once with the proposal; stored hashed.

string
Examplegenerated
{
"poll_secret": "example"
}

Pending, expired, an initial grant with its key, or an update grant with no key. An update receipt remains pollable for the proposal’s ten-minute lifetime.

Media typeapplication/json
One of:
object
interval
required
integer format: int64
status
required
string
Allowed values: pending
Example
{
"status": "pending"
}

The response body names the invalid field and reason.

No proposal answers this poll secret.

The key was collected already.