Getting started
Every request needs an API key. To ask for one, write to morgan@opendoorok.org and tell us who you are and what you plan to build. We will tell you which parts of the API your key can use.
Send your key in one of two headers (never in the web address):
Authorization: Bearer YOUR_API_KEYor
X-API-Key: YOUR_API_KEYKeep the key private, like a password. If it leaks, tell us and we will switch it off; a switched-off key stops working on its very next request. The API accepts requests from any website (CORS is open), but a key typed into a web page is visible to that page's visitors, so call the API from your server where you can.
Base address: https://opendoorok.org/functions
What you can read
- organizations —
partnerApiOrganizations(list),partnerApiOrganization(one record,?id=). Organizations whose status is active (the same organizations the public directory and search list). - locations —
partnerApiLocations(list),partnerApiLocation(one record,?id=). A location is returned only when the website would show its address: the organization is active, the location is not marked confidential, it has a street address, and a public walk-in program of the same organization lists it. - programs —
partnerApiPrograms(list),partnerApiProgram(one record,?id=). Programs whose status is active, seasonal or waitlist and whose organization is active (the same programs the public search lists). - contacts —
partnerApiContacts(list),partnerApiContact(one record,?id=). A contact is returned only when it is public on the website (is_public), not disabled, belongs to an active organization, AND an administrator has also switched on api_public for it. The api_public switch defaults to off, so no contact is returned until it is set deliberately. - Search —
partnerApiSearch(POST). The ranked directory search. Results come from the directory's ranked index; an optional external re-ranking step is off unless your key was approved for it.
Only public information is returned. Internal notes, verification details and anything an organization has asked us to keep private are never part of the API.
Examples
Replace YOUR_API_KEY and the ids with your own values.
List organizations
curl -s "https://opendoorok.org/functions/partnerApiOrganizations?limit=5&ntee_code=P60" \
-H "Authorization: Bearer YOUR_API_KEY"Get one organization
curl -s "https://opendoorok.org/functions/partnerApiOrganization?id=ORGANIZATION_ID" \
-H "Authorization: Bearer YOUR_API_KEY"List locations
curl -s "https://opendoorok.org/functions/partnerApiLocations?limit=5&city=Tulsa" \
-H "Authorization: Bearer YOUR_API_KEY"Get one location
curl -s "https://opendoorok.org/functions/partnerApiLocation?id=LOCATION_ID" \
-H "Authorization: Bearer YOUR_API_KEY"List programs
curl -s "https://opendoorok.org/functions/partnerApiPrograms?limit=5&service_category=food_basic_needs" \
-H "Authorization: Bearer YOUR_API_KEY"Get one program
curl -s "https://opendoorok.org/functions/partnerApiProgram?id=PROGRAM_ID" \
-H "Authorization: Bearer YOUR_API_KEY"List contacts
curl -s "https://opendoorok.org/functions/partnerApiContacts?limit=5" \
-H "Authorization: Bearer YOUR_API_KEY"Get one contact
curl -s "https://opendoorok.org/functions/partnerApiContact?id=CONTACT_ID" \
-H "Authorization: Bearer YOUR_API_KEY"Search
curl -s -X POST "https://opendoorok.org/functions/partnerApiSearch" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "food pantry", "locale": "Oklahoma City", "limit": 10}'This specification (no key needed)
curl -s "https://opendoorok.org/functions/partnerApiOpenapi"Paging, filters and keeping your copy up to date
Lists return { "data": [...], "page": { limit, offset, total, has_more, next_offset } }. The default page size is 50 and the largest is 200 (limit). Ask for the next page with offset=next_offset until has_more is false. Records come back in ascending id order. A single record comes back as { "data": {...} }.
Each list also takes simple exact-match filters (see the reference below). To fetch only what changed, add updated_since with an ISO 8601 time. It is inclusive, so a record changed at exactly that moment is returned again; treat records as upserts by id.
# 1. First run: page through everything
curl -s "https://opendoorok.org/functions/partnerApiPrograms?limit=200&offset=0" -H "Authorization: Bearer YOUR_API_KEY"
# ...repeat with offset=next_offset until has_more is false.
# Remember the newest updated_date you saw (for example 2026-03-01T14:22:05Z).
# 2. Later runs: only what changed since then
curl -s "https://opendoorok.org/functions/partnerApiPrograms?limit=200&updated_since=2026-03-01T14:22:05Z" -H "Authorization: Bearer YOUR_API_KEY"
# 3. A record that stops being public simply disappears from the lists (and answers 404).
# To notice removals, re-read the full list now and then and drop ids that are gone.Search is paged with limit (default 10, largest 50) and offset, or with the next_cursor it returns (send it back as after), which keeps your place even if the directory changes between requests.
Rate limits and errors
Each key can make a fixed number of requests per minute (the default is 60; your key may differ). Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Over the limit you get 429 with a Retry-After header (seconds to wait).
Errors always look like { "error": { "code": "...", "message": "..." } }: 400 invalid request, 401 missing, wrong or switched-off key, 403 your key may not use that endpoint group, 404 no public record with that id, 405 wrong method, 429 slow down, 500 our side (quote the request_id if you contact us), 503 the API is switched off.
Attribution and terms
We ask that you display our logo, a link to our site in a prominent location, in exchange for access to the API.
Interactive reference
Press Authorize, paste your key, then use Try it out on any endpoint. Requests go to the live API with your key. The key is kept in this page only and is forgotten when you reload.
Open Door Partner API 1.0.0
OAS 3.1
Read-only access to the Open Door directory of Oklahoma nonprofits and their programs.
Read-only access to public Open Door directory data: organizations, locations, programs and shared contacts, plus the directory search.
Every endpoint except this document needs an API key. To request one, write to morgan@opendoorok.org.
Send the key as Authorization: Bearer <key> or X-API-Key: <key>. Lists are paged with limit and offset (limit up to 200); sync changes with updated_since. Default limit is 60 requests per minute per key unless your key says otherwise (never above 6000).
We ask that you display our logo, a link to our site in a prominent location, in exchange for access to the API.
OrganizationsNonprofit organizations listed in the Open Door directory.
Nonprofit organizations listed in the Open Door directory.
LocationsPublic walk-in addresses. Confidential and unlisted addresses are never returned.
Public walk-in addresses. Confidential and unlisted addresses are never returned.
ProgramsPrograms and services offered by listed organizations.
Programs and services offered by listed organizations.
ContactsPublic contact points that an organization has agreed to share through the API.
Public contact points that an organization has agreed to share through the API.
SearchThe directory search.
The directory search.
DocumentationThis specification.
This specification.
Machine-readable: OpenAPI 3.1 document.