{"openapi":"3.1.0","info":{"title":"Open Door Partner API","version":"1.0.0","summary":"Read-only access to the Open Door directory of Oklahoma nonprofits and their programs.","description":"Read-only access to public Open Door directory data: organizations, locations, programs and shared contacts, plus the directory search.\n\nEvery endpoint except this document needs an API key. To request one, write to morgan@opendoorok.org.\n\nSend 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).\n\nWe ask that you display our logo, a link to our site in a prominent location, in exchange for access to the API.","contact":{"name":"Open Door API requests","email":"morgan@opendoorok.org"}},"servers":[{"url":"https://opendoor.mcboyd.dev/functions","description":"Open Door"}],"tags":[{"name":"Organizations","description":"Nonprofit organizations listed in the Open Door directory."},{"name":"Locations","description":"Public walk-in addresses. Confidential and unlisted addresses are never returned."},{"name":"Programs","description":"Programs and services offered by listed organizations."},{"name":"Contacts","description":"Public contact points that an organization has agreed to share through the API."},{"name":"Search","description":"The directory search."},{"name":"Documentation","description":"This specification."}],"security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"paths":{"/partnerApiOrganizations":{"get":{"operationId":"list_organizations","tags":["Organizations"],"summary":"List organizations","description":"Nonprofit organizations listed in the Open Door directory.\n\n**Which records:** Organizations whose status is active (the same organizations the public directory and search list).\n\nRecords come back in ascending id order. Required scope: `organizations`.","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/offset"},{"$ref":"#/components/parameters/updated_since"},{"name":"ntee_code","in":"query","required":false,"description":"Exact NTEE code.","schema":{"type":"string","maxLength":200,"examples":["P60"]}},{"name":"tag_id","in":"query","required":false,"description":"Organizations that carry this tag id.","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"A page of records.","headers":{"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/ApiDisabled"}}}},"/partnerApiOrganization":{"get":{"operationId":"get_organization","tags":["Organizations"],"summary":"Get one organization","description":"Returns one record by id. A record that does not exist and a record that is not public both answer 404. Required scope: `organizations`.","parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"200":{"description":"The record.","headers":{"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSingle"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/ApiDisabled"}}}},"/partnerApiLocations":{"get":{"operationId":"list_locations","tags":["Locations"],"summary":"List locations","description":"Public walk-in addresses. Confidential and unlisted addresses are never returned.\n\n**Which records:** 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.\n\nRecords come back in ascending id order. Required scope: `locations`.","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/offset"},{"$ref":"#/components/parameters/updated_since"},{"name":"organization_id","in":"query","required":false,"description":"Locations of one organization.","schema":{"type":"string","maxLength":200}},{"name":"city","in":"query","required":false,"description":"City name (case-insensitive).","schema":{"type":"string","maxLength":200,"examples":["Tulsa"]}},{"name":"state","in":"query","required":false,"description":"State (case-insensitive).","schema":{"type":"string","maxLength":200,"examples":["OK"]}},{"name":"zip","in":"query","required":false,"description":"Exact ZIP or postal code.","schema":{"type":"string","maxLength":200,"examples":["73102"]}}],"responses":{"200":{"description":"A page of records.","headers":{"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/ApiDisabled"}}}},"/partnerApiLocation":{"get":{"operationId":"get_location","tags":["Locations"],"summary":"Get one location","description":"Returns one record by id. A record that does not exist and a record that is not public both answer 404. Required scope: `locations`.","parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"200":{"description":"The record.","headers":{"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationSingle"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/ApiDisabled"}}}},"/partnerApiPrograms":{"get":{"operationId":"list_programs","tags":["Programs"],"summary":"List programs","description":"Programs and services offered by listed organizations.\n\n**Which records:** Programs whose status is active, seasonal or waitlist and whose organization is active (the same programs the public search lists).\n\nRecords come back in ascending id order. Required scope: `programs`.","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/offset"},{"$ref":"#/components/parameters/updated_since"},{"name":"organization_id","in":"query","required":false,"description":"Programs of one organization.","schema":{"type":"string","maxLength":200}},{"name":"service_category","in":"query","required":false,"description":"Exact service category value.","schema":{"type":"string","maxLength":200,"examples":["food_basic_needs"]}},{"name":"program_type","in":"query","required":false,"description":"Exact program type (case-insensitive).","schema":{"type":"string","maxLength":200,"examples":["Emergency Shelter"]}},{"name":"intake_method","in":"query","required":false,"description":"Exact intake method.","schema":{"type":"string","maxLength":200,"examples":["walk_in"]}},{"name":"status","in":"query","required":false,"description":"active, seasonal or waitlist.","schema":{"type":"string","maxLength":200,"examples":["active"]}},{"name":"tag_id","in":"query","required":false,"description":"Programs that carry this tag id.","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"A page of records.","headers":{"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgramList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/ApiDisabled"}}}},"/partnerApiProgram":{"get":{"operationId":"get_program","tags":["Programs"],"summary":"Get one program","description":"Returns one record by id. A record that does not exist and a record that is not public both answer 404. Required scope: `programs`.","parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"200":{"description":"The record.","headers":{"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgramSingle"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/ApiDisabled"}}}},"/partnerApiContacts":{"get":{"operationId":"list_contacts","tags":["Contacts"],"summary":"List contacts","description":"Public contact points that an organization has agreed to share through the API.\n\n**Which records:** 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.\n\nRecords come back in ascending id order. Required scope: `contacts`.","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/offset"},{"$ref":"#/components/parameters/updated_since"},{"name":"organization_id","in":"query","required":false,"description":"Contacts of one organization.","schema":{"type":"string","maxLength":200}},{"name":"program_id","in":"query","required":false,"description":"Contacts that serve this program id.","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"A page of records.","headers":{"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/ApiDisabled"}}}},"/partnerApiContact":{"get":{"operationId":"get_contact","tags":["Contacts"],"summary":"Get one contact","description":"Returns one record by id. A record that does not exist and a record that is not public both answer 404. Required scope: `contacts`.","parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"200":{"description":"The record.","headers":{"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSingle"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/ApiDisabled"}}}},"/partnerApiSearch":{"post":{"operationId":"search","tags":["Search"],"summary":"Search the directory","description":"Runs the same ranked directory search the Open Door website uses. Results come from the directory's ranked index. An optional external re-ranking service is OFF unless your key has been allowed to use it. Successful first-page searches, including zero matches, are logged with the service query, resolved area, and total match count to identify directory gaps. Authenticated searches are attributed to the partner organization or key label, without storing the API credential in the search log. Do not send names, contact details, or other personal information in the query. Required scope: `search`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"},"example":{"query":"food pantry","locale":"Oklahoma City","limit":10}}}},"responses":{"200":{"description":"A page of ranked results.","headers":{"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/ApiDisabled"}}}},"/partnerApiOpenapi":{"get":{"operationId":"openapi","tags":["Documentation"],"summary":"This OpenAPI document","security":[],"description":"The machine-readable description of this API. No key needed.","responses":{"200":{"description":"OpenAPI 3.1 JSON.","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Authorization: Bearer <key>"},"apiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"X-API-Key: <key>"}},"parameters":{"limit":{"name":"limit","in":"query","required":false,"description":"Rows per page (1 to 200).","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},"offset":{"name":"offset","in":"query","required":false,"description":"Rows to skip. Use next_offset from the previous response.","schema":{"type":"integer","minimum":0,"default":0}},"updated_since":{"name":"updated_since","in":"query","required":false,"description":"Only records changed at or after this time (ISO 8601, for example 2026-01-31T00:00:00Z). Use it to sync changes.","schema":{"type":"string","format":"date-time"}},"id":{"name":"id","in":"query","required":true,"description":"Record id.","schema":{"type":"string","minLength":8,"maxLength":64}}},"responses":{"BadRequest":{"description":"A parameter is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"invalid_parameter","message":"limit must be a whole number from 1 to 200."}}}}},"Unauthorized":{"description":"No API key, or the key is invalid or revoked.","headers":{"WWW-Authenticate":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"missing_api_key","message":"An API key is required."}}}}},"Forbidden":{"description":"The key is valid but is not allowed to use this endpoint group.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"scope_not_granted","message":"This API key is not allowed to use the search endpoints."}}}}},"NotFound":{"description":"No public record has this id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"not_found","message":"No record found."}}}}},"TooManyRequests":{"description":"The per-minute limit for this key was exceeded. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"schema":{"type":"integer"}},"X-RateLimit-Remaining":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"ServerError":{"description":"Something went wrong on our side. Try again; quote request_id if it keeps happening.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"ApiDisabled":{"description":"The Partner API is switched off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","required":["error"],"additionalProperties":false,"properties":{"error":{"type":"object","required":["code","message"],"additionalProperties":true,"properties":{"code":{"type":"string","description":"Stable machine-readable code, for example invalid_parameter."},"message":{"type":"string","description":"Plain-language explanation."},"request_id":{"type":"string","description":"Quote this when you contact us about an error."}}}}},"Page":{"type":"object","required":["limit","offset","total","has_more","next_offset"],"additionalProperties":false,"properties":{"limit":{"type":"integer","description":"Page size used."},"offset":{"type":"integer","description":"Rows skipped before this page."},"total":{"type":"integer","description":"Total rows matching the request."},"has_more":{"type":"boolean","description":"True when another page exists."},"next_offset":{"type":["integer","null"],"description":"Offset to request next; null on the last page."}}},"SearchPage":{"type":"object","required":["limit","offset","total","has_more","next_offset","next_cursor"],"additionalProperties":false,"properties":{"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"next_cursor":{"type":["string","null"],"description":"Opaque cursor. Send it back as `after` to continue exactly where this page ended even if the directory changes between requests."}}},"Organization":{"type":"object","description":"Nonprofit organizations listed in the Open Door directory. Organizations whose status is active (the same organizations the public directory and search list).","required":["id","name","legal_name","status","biography","logo_url","website_url","public_email","primary_phone","careers_url","volunteer_url","newsletter_url","donation_type","donation_value","ein","ntee_code","tag_ids","created_date","updated_date"],"additionalProperties":false,"properties":{"id":{"type":["string","null"],"description":"Stable record id. Other resources point to it with organization_id."},"name":{"type":["string","null"],"description":"Public-facing organization name."},"legal_name":{"type":["string","null"],"description":"Legal registered name, when it differs from the public name."},"status":{"type":["string","null"],"description":"Always active on this API."},"biography":{"type":["string","null"],"description":"Public about text for the organization."},"logo_url":{"type":["string","null"],"format":"uri","description":"Logo image address."},"website_url":{"type":["string","null"],"format":"uri","description":"Organization website."},"public_email":{"type":["string","null"],"description":"Public contact email that the organization has listed in the directory."},"primary_phone":{"type":["string","null"],"description":"Main public phone number."},"careers_url":{"type":["string","null"],"format":"uri","description":"Job openings page."},"volunteer_url":{"type":["string","null"],"format":"uri","description":"Volunteer sign-up page."},"newsletter_url":{"type":["string","null"],"format":"uri","description":"Email list sign-up page."},"donation_type":{"type":["string","null"],"description":"How the organization accepts gifts: url (online link) or mailing_address."},"donation_value":{"type":["string","null"],"description":"The donation link or mailing address, depending on donation_type."},"ein":{"type":["string","null"],"description":"Employer Identification Number (public IRS record)."},"ntee_code":{"type":["string","null"],"description":"NTEE nonprofit classification code."},"tag_ids":{"type":"array","items":{"type":"string"},"description":"Ids of the tags applied to the organization. Tag names are returned by the search endpoint in available_filters."},"created_date":{"type":["string","null"],"format":"date-time","description":"When the record was first created in the directory."},"updated_date":{"type":["string","null"],"format":"date-time","description":"When the record last changed. Use it with the updated_since parameter to sync only changes."}}},"OrganizationList":{"type":"object","required":["data","page"],"additionalProperties":false,"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Organization"}},"page":{"$ref":"#/components/schemas/Page"}}},"OrganizationSingle":{"type":"object","required":["data"],"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/Organization"}}},"Location":{"type":"object","description":"Public walk-in addresses. Confidential and unlisted addresses are never returned. 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.","required":["id","organization_id","label","address_line1","address_line2","city","state","postal_code","phone","created_date","updated_date"],"additionalProperties":false,"properties":{"id":{"type":["string","null"],"description":"Stable record id."},"organization_id":{"type":["string","null"],"description":"Id of the organization that runs this location."},"label":{"type":["string","null"],"description":"Display name of the location (for example, Main Office)."},"address_line1":{"type":["string","null"],"description":"Street address."},"address_line2":{"type":["string","null"],"description":"Suite, floor or unit."},"city":{"type":["string","null"],"description":"City."},"state":{"type":["string","null"],"description":"State."},"postal_code":{"type":["string","null"],"description":"ZIP or postal code."},"phone":{"type":["string","null"],"description":"Phone number for this location."},"created_date":{"type":["string","null"],"format":"date-time","description":"When the record was first created in the directory."},"updated_date":{"type":["string","null"],"format":"date-time","description":"When the record last changed. Use it with the updated_since parameter to sync only changes."}}},"LocationList":{"type":"object","required":["data","page"],"additionalProperties":false,"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Location"}},"page":{"$ref":"#/components/schemas/Page"}}},"LocationSingle":{"type":"object","required":["data"],"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/Location"}}},"Program":{"type":"object","description":"Programs and services offered by listed organizations. Programs whose status is active, seasonal or waitlist and whose organization is active (the same programs the public search lists).","required":["id","organization_id","partner_org_ids","name","description","program_type","service_category","status","availability_status","availability_notes","availability_last_updated","bed_count","beds_available","intake_method","eligibility_notes","program_url","application_url","image_url","video_url","tag_ids","location_ids","service_areas","created_date","updated_date"],"additionalProperties":false,"properties":{"id":{"type":["string","null"],"description":"Stable record id."},"organization_id":{"type":["string","null"],"description":"Id of the lead organization."},"partner_org_ids":{"type":"array","items":{"type":"string"},"description":"Ids of other organizations that run the program jointly."},"name":{"type":["string","null"],"description":"Program name."},"description":{"type":["string","null"],"description":"Public description."},"program_type":{"type":["string","null"],"description":"Specific kind of program, for example Emergency Shelter."},"service_category":{"type":["string","null"],"description":"Top-level service category (the same values the search filters use)."},"status":{"type":["string","null"],"description":"active, seasonal or waitlist."},"availability_status":{"type":["string","null"],"description":"Provider-reported availability: open, full or waitlist."},"availability_notes":{"type":["string","null"],"description":"Provider notes about current availability."},"availability_last_updated":{"type":["string","null"],"format":"date-time","description":"When the provider last updated availability."},"bed_count":{"type":["integer","null"],"description":"Total bed capacity, for housing and shelter programs."},"beds_available":{"type":["integer","null"],"description":"Beds available when last reported."},"intake_method":{"type":["string","null"],"description":"How to reach the program: phone, walk_in, online, referral_only or appointment."},"eligibility_notes":{"type":["string","null"],"description":"Who can use the program."},"program_url":{"type":["string","null"],"format":"uri","description":"The program's own web page."},"application_url":{"type":["string","null"],"format":"uri","description":"Registration or application page."},"image_url":{"type":["string","null"],"format":"uri","description":"Program image address."},"video_url":{"type":["string","null"],"format":"uri","description":"Program video address."},"tag_ids":{"type":"array","items":{"type":"string"},"description":"Ids of the tags applied to the program."},"location_ids":{"type":"array","items":{"type":"string"},"description":"Ids of the program's public locations (only locations returned by the locations endpoint are listed)."},"service_areas":{"type":"array","items":{"type":"object","properties":{"area_type":{"type":["string","null"],"description":"zip, city, county, radius or statewide."},"area_value":{"type":["string","null"],"description":"The ZIP, city, county or other value."}},"required":["area_type","area_value"],"additionalProperties":false},"description":"Where the program says it serves."},"created_date":{"type":["string","null"],"format":"date-time","description":"When the record was first created in the directory."},"updated_date":{"type":["string","null"],"format":"date-time","description":"When the record last changed. Use it with the updated_since parameter to sync only changes."}}},"ProgramList":{"type":"object","required":["data","page"],"additionalProperties":false,"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Program"}},"page":{"$ref":"#/components/schemas/Page"}}},"ProgramSingle":{"type":"object","required":["data"],"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/Program"}}},"Contact":{"type":"object","description":"Public contact points that an organization has agreed to share through the API. 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.","required":["id","organization_id","program_ids","name","role","email","phone","created_date","updated_date"],"additionalProperties":false,"properties":{"id":{"type":["string","null"],"description":"Stable record id."},"organization_id":{"type":["string","null"],"description":"Id of the organization."},"program_ids":{"type":"array","items":{"type":"string"},"description":"Ids of the public programs this contact serves. Empty means the whole organization."},"name":{"type":["string","null"],"description":"Contact title or name as the organization wants it shown (for example, Intake Line)."},"role":{"type":["string","null"],"description":"Role, for example Intake."},"email":{"type":["string","null"],"description":"Public contact email."},"phone":{"type":["string","null"],"description":"Public contact phone number."},"created_date":{"type":["string","null"],"format":"date-time","description":"When the record was first created in the directory."},"updated_date":{"type":["string","null"],"format":"date-time","description":"When the record last changed. Use it with the updated_since parameter to sync only changes."}}},"ContactList":{"type":"object","required":["data","page"],"additionalProperties":false,"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}},"page":{"$ref":"#/components/schemas/Page"}}},"ContactSingle":{"type":"object","required":["data"],"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/Contact"}}},"SearchResult":{"type":"object","description":"One matching program, in ranked order.","required":["id","name","org_name","organization_id","description","service_category","program_type","tag_ids","intake_method","program_url","application_url","eligibility_notes","availability_status","availability_notes","availability_last_updated","bed_count","beds_available","org_phone","org_email","org_website","org_logo","score","match_reason","geo_score","coverage_basis","distance_miles","coverage_label"],"additionalProperties":false,"properties":{"id":{"type":["string","null"],"description":"Program id (use it with the programs endpoint)."},"name":{"type":["string","null"],"description":"Program name."},"org_name":{"type":["string","null"],"description":"Organization name."},"organization_id":{"type":["string","null"],"description":"Organization id."},"description":{"type":["string","null"],"description":"Program description."},"service_category":{"type":["string","null"],"description":"Service category."},"program_type":{"type":["string","null"],"description":"Program type."},"tag_ids":{"type":"array","items":{"type":"string"},"description":"Tag ids on the program."},"intake_method":{"type":["string","null"],"description":"How to reach the program."},"program_url":{"type":["string","null"],"format":"uri","description":"Program web page."},"application_url":{"type":["string","null"],"format":"uri","description":"Application page."},"eligibility_notes":{"type":["string","null"],"description":"Who can use the program."},"availability_status":{"type":["string","null"],"description":"open, full or waitlist, when reported."},"availability_notes":{"type":["string","null"],"description":"Availability notes."},"availability_last_updated":{"type":["string","null"],"format":"date-time","description":"When availability was last reported."},"bed_count":{"type":["integer","null"],"description":"Bed capacity."},"beds_available":{"type":["integer","null"],"description":"Beds available when last reported."},"org_phone":{"type":["string","null"],"description":"Organization main phone."},"org_email":{"type":["string","null"],"description":"Organization public email."},"org_website":{"type":["string","null"],"format":"uri","description":"Organization website."},"org_logo":{"type":["string","null"],"format":"uri","description":"Organization logo address."},"score":{"type":["number","null"],"description":"Text relevance score, 0 to 100."},"match_reason":{"type":["string","null"],"description":"Why the row matched, for example program_text, organization_name or synonym."},"geo_score":{"type":["number","null"],"description":"How well the program's service area fits the locale, 0 to 100."},"coverage_basis":{"type":["string","null"],"description":"How the locale match was made, for example declared_city."},"distance_miles":{"type":["number","null"],"description":"Approximate distance in miles, when it could be worked out."},"coverage_label":{"type":["string","null"],"description":"Plain-language summary of the locale match."}}},"SearchRequest":{"type":"object","required":["query","locale"],"additionalProperties":false,"description":"At least one of query and locale must be non-empty.","properties":{"query":{"type":"string","maxLength":500,"description":"What the person needs, in plain words. May be empty when locale is given.","examples":["food pantry"]},"locale":{"type":"string","maxLength":200,"description":"Where the person is: a city, a ZIP code or a county name. May be empty when query is given.","examples":["Oklahoma City","73102","Oklahoma County"]},"service_categories":{"type":"array","items":{"type":"string","enum":["housing_shelter","substance_use_recovery","mental_health","domestic_violence_safety","legal_advocacy","financial_assistance","food_basic_needs","clothing_basic_needs","employment_education","medical_health","childcare_family","child_safety","civic_advocacy","senior_services","disability_services","transportation","arts_culture_recreation","faith_spiritual_ministry","youth_development","veteran_services","household_goods","animal_services","reentry_support","immigrant_refugee_services","hygiene_day_services","capacity_building","grantmaking","public_safety_emergency_response","other"]},"uniqueItems":true,"description":"Keep only programs in these categories."},"tag_ids":{"type":"array","maxItems":20,"items":{"type":"string"},"description":"Keep only programs that carry ALL of these tag ids (see available_filters in a search response)."},"limit":{"type":"integer","minimum":1,"maximum":50,"default":10,"description":"Rows per page."},"offset":{"type":"integer","minimum":0,"default":0,"description":"Rows to skip. Ignored when `after` is given."},"after":{"type":"string","description":"The next_cursor value from the previous page."}}},"SearchResponse":{"type":"object","required":["data","page","search"],"additionalProperties":false,"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"}},"page":{"$ref":"#/components/schemas/SearchPage"},"search":{"type":"object","additionalProperties":false,"description":"What the search understood, and the filter choices that fit these results.","required":["status","resolved_locale","locale_recognized","serves_location","intent","crisis_type","crisis_resources_recommended","facets","available_filters","service_areas","ranking"],"properties":{"status":{"type":"string","enum":["ok","no_match","locale_unrecognized"],"description":"ok, no_match (nothing found) or locale_unrecognized (the locale text was not understood)."},"resolved_locale":{"type":["string","null"],"description":"The place the locale text was understood as."},"locale_recognized":{"type":"boolean"},"serves_location":{"type":"boolean","description":"True when a recognized locale was applied to the ranking."},"intent":{"type":"object","description":"Service categories the query was understood to mean.","properties":{"source":{"type":"string"},"categories":{"type":"array","items":{"type":"string"}},"primary_categories":{"type":"array","items":{"type":"string"}}}},"crisis_type":{"type":["string","null"],"description":"Set when the words suggest an emergency. Show crisis resources first."},"crisis_resources_recommended":{"type":"boolean"},"facets":{"type":"array","description":"Result counts per service category.","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"integer"}}}},"available_filters":{"type":"array","description":"Tags that can narrow these results (use the id in tag_ids).","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"slug":{"type":"string"},"sort_order":{"type":"number"}}}},"service_areas":{"type":"array","description":"Service areas of the programs on this page.","items":{"type":"object","properties":{"program_id":{"type":"string"},"area_type":{"type":"string"},"area_value":{"type":"string"}}}},"ranking":{"type":"object","required":["version","order","reranked","rerank_status"],"properties":{"version":{"type":"string","description":"Search engine version."},"order":{"type":"string","description":"The order rows are ranked in."},"reranked":{"type":"boolean","description":"True only when an optional external re-ranking service changed the order of the first page. Always false unless your key is allowed to use it."},"rerank_status":{"type":"string","description":"skipped when re-ranking was not used."}}}}}}}}},"x-partner-api":{"version":"v1","scopes":["organizations","locations","programs","contacts","search"],"api_enabled":true,"require_api_key":true,"key_request_contact":"morgan@opendoorok.org","attribution_text":"We ask that you display our logo, a link to our site in a prominent location, in exchange for access to the API.","terms_text":"","default_rate_limit_per_minute":60,"list_limit":{"default":50,"max":200},"search_limit":{"default":10,"max":50},"endpoints":{"organizations":{"list":"partnerApiOrganizations","get":"partnerApiOrganization","visibility":"Organizations whose status is active (the same organizations the public directory and search list).","filters":[{"name":"ntee_code","example":"P60"},{"name":"tag_id","example":null}]},"locations":{"list":"partnerApiLocations","get":"partnerApiLocation","visibility":"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.","filters":[{"name":"organization_id","example":null},{"name":"city","example":"Tulsa"},{"name":"state","example":"OK"},{"name":"zip","example":"73102"}]},"programs":{"list":"partnerApiPrograms","get":"partnerApiProgram","visibility":"Programs whose status is active, seasonal or waitlist and whose organization is active (the same programs the public search lists).","filters":[{"name":"organization_id","example":null},{"name":"service_category","example":"food_basic_needs"},{"name":"program_type","example":"Emergency Shelter"},{"name":"intake_method","example":"walk_in"},{"name":"status","example":"active"},{"name":"tag_id","example":null}]},"contacts":{"list":"partnerApiContacts","get":"partnerApiContact","visibility":"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.","filters":[{"name":"organization_id","example":null},{"name":"program_id","example":null}]}}}}