{"openapi":"3.1.0","info":{"title":"One Church Software (BYOK) API","version":"0.1.0","description":"One Church Software (BYOK) lets an AI assistant read your own One Church Software data through the One Church Software API with a key you supply (One Church Software API key). Read-only: 10 tools (list_rooms, get_room, get_room_usage, list_resource_items, get_resource_item, get_resource_item_usage, list_facility_requests, list_locations, list_room_categories, list_item_categories). The BYOK key...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-onechurch-facilities.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-onechurch-facilities/docs"},"termsOfService":"https://connectorbay.com/byok-onechurch-facilities/terms"},"servers":[{"url":"https://byok-onechurch-facilities.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-onechurch-facilities/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_rooms":{"post":{"operationId":"list_rooms","summary":"List bookable rooms with campus, category, occupancy and active flag. Filter by name, campus, category, minimum occupanc","description":"List bookable rooms with campus, category, occupancy and active flag. Filter by name, campus, category, minimum occupancy or text. Paged with limit and skip. Needs the Full Read Facilities permission on the key. Use for \"Which rooms can hold at least 100 people\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"tenant":{"description":"Your church's One Church Software subdomain: the part before .onechurchsoftware.com, for example 'demo'.","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Tenant","type":"string"},"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only rooms whose name contains this text.","title":"Name"},"location":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated campus ids to include (from list_locations), for example '1,2'.","title":"Location"},"category":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated room category ids (from list_room_categories).","title":"Category"},"min_occupancy":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"Only rooms that hold at least this many people.","title":"Min Occupancy"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for active records only, false for inactive only.","title":"Active"},"search":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Full-text search; matches are ranked by relevance.","title":"Search"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many records to return per page (1 to 100).","title":"Limit"},"skip":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"How many records to skip before the first result; for page N of size limit use limit * (N - 1).","title":"Skip"}},"required":["tenant"],"title":"list_roomsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_room":{"post":{"operationId":"get_room","summary":"Get one room by id: name, description, occupancy, active flag, campus and category. Needs the Full Read Facilities permi","description":"Get one room by id: name, description, occupancy, active flag, campus and category. Needs the Full Read Facilities permission on the key. Use for \"Show the details of room 12\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"tenant":{"description":"Your church's One Church Software subdomain: the part before .onechurchsoftware.com, for example 'demo'.","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Tenant","type":"string"},"room_id":{"description":"Room id from list_rooms.","minimum":1,"title":"Room Id","type":"integer"}},"required":["tenant","room_id"],"title":"get_roomArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_room_usage":{"post":{"operationId":"get_room_usage","summary":"List approved and pending room bookings between two dates, optionally for chosen rooms or campuses, with start, end, eve","description":"List approved and pending room bookings between two dates, optionally for chosen rooms or campuses, with start, end, event and approval flag. Blockout dates can be included. Needs the Full Read Facilities permission on the key. Use for \"Which rooms are booked in November\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"tenant":{"description":"Your church's One Church Software subdomain: the part before .onechurchsoftware.com, for example 'demo'.","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Tenant","type":"string"},"window_start":{"description":"Earliest date-time to include, such as 2026-11-01T00:00:00Z.","maxLength":40,"title":"Window Start","type":"string"},"window_end":{"description":"Latest date-time to include, such as 2026-11-30T23:59:59Z.","maxLength":40,"title":"Window End","type":"string"},"room":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated room ids to restrict to.","title":"Room"},"campus":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated campus ids to restrict to.","title":"Campus"},"blockouts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to include blockout dates in the results.","title":"Blockouts"}},"required":["tenant","window_start","window_end"],"title":"get_room_usageArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_resource_items":{"post":{"operationId":"list_resource_items","summary":"List bookable resource items (equipment, vehicles, supplies) with campus, category, quantity and active flag. Paged with","description":"List bookable resource items (equipment, vehicles, supplies) with campus, category, quantity and active flag. Paged with limit and skip. Needs the Full Read Facilities permission on the key. Use for \"What equipment can we book and how many do we have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"tenant":{"description":"Your church's One Church Software subdomain: the part before .onechurchsoftware.com, for example 'demo'.","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Tenant","type":"string"},"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only items whose name contains this text.","title":"Name"},"location":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated campus ids to include (from list_locations), for example '1,2'.","title":"Location"},"category":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated item category ids (from list_item_categories).","title":"Category"},"min_quantity":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"Only items with at least this many available.","title":"Min Quantity"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for active records only, false for inactive only.","title":"Active"},"search":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Full-text search; matches are ranked by relevance.","title":"Search"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many records to return per page (1 to 100).","title":"Limit"},"skip":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"How many records to skip before the first result; for page N of size limit use limit * (N - 1).","title":"Skip"}},"required":["tenant"],"title":"list_resource_itemsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_resource_item":{"post":{"operationId":"get_resource_item","summary":"Get one resource item by id: name, description, quantity, active flag, campus and category. Needs the Full Read Faciliti","description":"Get one resource item by id: name, description, quantity, active flag, campus and category. Needs the Full Read Facilities permission on the key. Use for \"Show the details of resource item 31\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"tenant":{"description":"Your church's One Church Software subdomain: the part before .onechurchsoftware.com, for example 'demo'.","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Tenant","type":"string"},"item_id":{"description":"Resource item id from list_resource_items.","minimum":1,"title":"Item Id","type":"integer"}},"required":["tenant","item_id"],"title":"get_resource_itemArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_resource_item_usage":{"post":{"operationId":"get_resource_item_usage","summary":"List approved and pending resource item bookings between two dates, optionally for chosen items or campuses. Needs the F","description":"List approved and pending resource item bookings between two dates, optionally for chosen items or campuses. Needs the Full Read Facilities permission on the key. Use for \"When is the folding table inventory booked in November\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"tenant":{"description":"Your church's One Church Software subdomain: the part before .onechurchsoftware.com, for example 'demo'.","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Tenant","type":"string"},"window_start":{"description":"Earliest date-time to include, such as 2026-11-01T00:00:00Z.","maxLength":40,"title":"Window Start","type":"string"},"window_end":{"description":"Latest date-time to include, such as 2026-11-30T23:59:59Z.","maxLength":40,"title":"Window End","type":"string"},"item":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated resource item ids to restrict to.","title":"Item"},"campus":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated campus ids to restrict to.","title":"Campus"},"blockouts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to include blockout dates in the results.","title":"Blockouts"}},"required":["tenant","window_start","window_end"],"title":"get_resource_item_usageArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_facility_requests":{"post":{"operationId":"list_facility_requests","summary":"List room and resource booking requests with event, campus and counts of approved, pending and denied rooms and items. F","description":"List room and resource booking requests with event, campus and counts of approved, pending and denied rooms and items. Filter by event, dates or past/future. Paged. Needs the Full Read Facilities permission on the key. Use for \"Which facility requests are still waiting for approval\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"tenant":{"description":"Your church's One Church Software subdomain: the part before .onechurchsoftware.com, for example 'demo'.","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Tenant","type":"string"},"event":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only requests for this event id.","title":"Event"},"date_start":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only bookings starting on or after this date-time, such as 2026-11-01T00:00:00Z.","title":"Date Start"},"date_end":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only bookings starting on or before this date-time.","title":"Date End"},"view":{"anyOf":[{"enum":["future","past"],"type":"string"},{"type":"null"}],"default":null,"description":"future for requests that have not ended, past for ones that have.","title":"View"},"rooms":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only requests for rooms whose names contain these words.","title":"Rooms"},"resources":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only requests for items whose names contain these words.","title":"Resources"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many records to return per page (1 to 100).","title":"Limit"},"skip":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"How many records to skip before the first result; for page N of size limit use limit * (N - 1).","title":"Skip"}},"required":["tenant"],"title":"list_facility_requestsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_locations":{"post":{"operationId":"list_locations","summary":"List the church's locations (campuses) with type, active flag and formatted address. Paged with limit and skip. Use for ","description":"List the church's locations (campuses) with type, active flag and formatted address. Paged with limit and skip. Use for \"What campuses does our church have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"tenant":{"description":"Your church's One Church Software subdomain: the part before .onechurchsoftware.com, for example 'demo'.","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Tenant","type":"string"},"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only locations whose name contains this text.","title":"Name"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for active records only, false for inactive only.","title":"Active"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many records to return per page (1 to 100).","title":"Limit"},"skip":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"How many records to skip before the first result; for page N of size limit use limit * (N - 1).","title":"Skip"}},"required":["tenant"],"title":"list_locationsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_room_categories":{"post":{"operationId":"list_room_categories","summary":"List room category values (the ids used by the category filter of list_rooms): id, name, code and active flag. Use for \"","description":"List room category values (the ids used by the category filter of list_rooms): id, name, code and active flag. Use for \"What room categories exist\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"tenant":{"description":"Your church's One Church Software subdomain: the part before .onechurchsoftware.com, for example 'demo'.","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Tenant","type":"string"},"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only categories whose name contains this text.","title":"Name"}},"required":["tenant"],"title":"list_room_categoriesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_item_categories":{"post":{"operationId":"list_item_categories","summary":"List resource item category values (the ids used by the category filter of list_resource_items): id, name, code and acti","description":"List resource item category values (the ids used by the category filter of list_resource_items): id, name, code and active flag. Use for \"What equipment categories exist\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"tenant":{"description":"Your church's One Church Software subdomain: the part before .onechurchsoftware.com, for example 'demo'.","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Tenant","type":"string"},"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only categories whose name contains this text.","title":"Name"}},"required":["tenant"],"title":"list_item_categoriesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}