Skip to Content
Hey Town Hall Data docs
Decisions

API reference · Decisions

Retrieve a motion

View as Markdown
GET
/v1/motions/{id}

One motion with each member's recorded vote. Billed as one records request.

Authorization

bearerAuth
headerAuthorizationBearer <token>

htd_test_ (sandbox, free, fictional towns) or htd_live_ (live, billed) key.

Path Parameters

id*string
Match^[0-9]{1,18}$

Response Body

The record.

application/json
  1. response
id*string
meeting_id*string
jurisdiction_id*string
country*string|null
region*string|null
meeting_date*string

YYYY-MM-DD.

position*number
item_position*number|null
number*string|null
text*string
mover*string|null
seconder*string|null
outcome*|

carried, defeated, tabled, referred, withdrawn — as printed, normalised.

unanimous*boolean|null
votes_for*number|null
votes_against*number|null
kinds*array<string>
topics*array<string>
actions*array<string>
business_topics*array<string>
source_url*|

The page, document, video or platform the record was read from.

read_at*|

When it was read.

votes*array<>
environment*string
Value in"sandbox""live"
Example Request
curl -X GET 'https://data.heytownhall.com/v1/motions/string'
Example Response
{  "id": "string",  "meeting_id": "string",  "jurisdiction_id": "string",  "country": "string",  "region": "string",  "meeting_date": "string",  "position": 0,  "item_position": 0,  "number": "string",  "text": "string",  "mover": "string",  "seconder": "string",  "outcome": "string",  "unanimous": true,  "votes_for": 0,  "votes_against": 0,  "kinds": [    "string"  ],  "topics": [    "string"  ],  "actions": [    "string"  ],  "business_topics": [    "string"  ],  "source_url": "string",  "read_at": "string",  "votes": [    {      "member_name": "string",      "vote": "string"    }  ],  "environment": "sandbox"}