Overview

Ostraka is a GraphQL API with three types of queries for district matching.

The url for the api is https://ostraka-ykmw.onrender.com/api/v1

Authentication

District matching requires an OAuth 2 Bearer Token. Politech will create and configure a user for you and then supply you with this token. It will authorize you to run the three types of GraphQL queries. You will see results for the district types your user is configured for.

You can pass the token via the Authorization header. For example, with curl:

curl -X POST <https://ostraka-ykmw.onrender.com/api/v1> --header "Authorization: Bearer [token]" -d "query={[query]}"

District Object

All of these functions return a list of districts. Below are the fields of a district object. Data for of these fields can be returned by any of the district matching functions.