{"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: 9 tools (list_plans, get_plan, list_service_types, get_service_type, list_plan_templates, list_songs, get_song, list_song_arrangements, list_serving_opportunities). The BYOK key travels with each request, is used...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-onechurch-service-plans.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-onechurch-service-plans/docs"},"termsOfService":"https://connectorbay.com/byok-onechurch-service-plans/terms"},"servers":[{"url":"https://byok-onechurch-service-plans.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-onechurch-service-plans/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_plans":{"post":{"operationId":"list_plans","summary":"List service plans with service type, date, title, subtitle, campus and template. Filter by service type, dates, title o","description":"List service plans with service type, date, title, subtitle, campus and template. Filter by service type, dates, title or upcoming-only. Paged with limit and skip. Needs the Full Read Service Plans permission on the key. Use for \"What service plans do we have coming up\".","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"},"title":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only plans whose title contains this text.","title":"Title"},"type":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated service type ids or codes (from list_service_types), for example 'plan_type_worship'.","title":"Type"},"date_start":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only plans whose earliest date is 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 plans whose earliest date is on or before this date-time.","title":"Date End"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for plans with an upcoming time (or no time yet), false for plans whose times have all passed.","title":"Active"},"location":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated campus ids; -1 for plans without a campus.","title":"Location"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many records to return per page (1 to 100). The service default is 50.","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_plansArguments","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_plan":{"post":{"operationId":"get_plan","summary":"Get one service plan by id: service type, name, title, subtitle, description, campus, start time, duration and whether i","description":"Get one service plan by id: service type, name, title, subtitle, description, campus, start time, duration and whether it is a template. Line items are not listed. Needs the Full Read Service Plans permission on the key. Use for \"Show the details of service plan 960\".","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"},"plan_id":{"description":"Plan id from list_plans.","minimum":1,"title":"Plan Id","type":"integer"}},"required":["tenant","plan_id"],"title":"get_planArguments","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_service_types":{"post":{"operationId":"list_service_types","summary":"List service types (for example weekly worship) with description, frequency, counts of teams, templates, attachments and","description":"List service types (for example weekly worship) with description, frequency, counts of teams, templates, attachments and plans, and the last and next plan. Paged. Needs the Full Read Service Plans permission on the key. Use for \"What service types do we plan\".","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 service types whose name contains this text.","title":"Name"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many records to return per page (1 to 100). The service default is 50.","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_service_typesArguments","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_service_type":{"post":{"operationId":"get_service_type","summary":"Get one service type by id: name, description, frequency and default flag. Needs the Full Read Service Plans permission ","description":"Get one service type by id: name, description, frequency and default flag. Needs the Full Read Service Plans permission on the key. Use for \"Describe service type 3\".","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"},"service_type_id":{"description":"Service type id from list_service_types.","minimum":1,"title":"Service Type Id","type":"integer"}},"required":["tenant","service_type_id"],"title":"get_service_typeArguments","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_plan_templates":{"post":{"operationId":"list_plan_templates","summary":"List the plan templates of one service type with the number of items, notes and volunteers each holds. Paged. Needs the ","description":"List the plan templates of one service type with the number of items, notes and volunteers each holds. Paged. Needs the Full Read Service Plans permission on the key. Use for \"What plan templates does service type 3 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"},"service_type_id":{"description":"Service type id from list_service_types.","minimum":1,"title":"Service Type Id","type":"integer"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many records to return per page (1 to 100). The service default is 50.","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","service_type_id"],"title":"list_plan_templatesArguments","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_songs":{"post":{"operationId":"list_songs","summary":"List the song library with category, authors, copyright, CCLI number, arrangement count, tempo and when it was last sche","description":"List the song library with category, authors, copyright, CCLI number, arrangement count, tempo and when it was last scheduled. Paged. Use for \"Which hymns have we not used since September\".","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"},"title":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only songs whose title contains this text.","title":"Title"},"authors":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only songs whose authors contain this text.","title":"Authors"},"ccli":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only songs whose CCLI number contains this text.","title":"Ccli"},"category":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated song category ids; -1 for songs without a category.","title":"Category"},"last_used_start":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only songs last scheduled on or after this date-time, such as 2026-09-01T00:00:00Z.","title":"Last Used Start"},"last_used_end":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only songs last scheduled on or before this date-time.","title":"Last Used End"},"search":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Free text search across title, CCLI number, category, notes, authors and copyright.","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). The service default is 50.","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_songsArguments","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_song":{"post":{"operationId":"get_song","summary":"Get one song by id: title, authors, copyright, CCLI number, category and verified flag. Notes and files are not returned","description":"Get one song by id: title, authors, copyright, CCLI number, category and verified flag. Notes and files are not returned. Use for \"Show the details of song 71\".","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"},"song_id":{"description":"Song id from list_songs.","minimum":1,"title":"Song Id","type":"integer"}},"required":["tenant","song_id"],"title":"get_songArguments","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_song_arrangements":{"post":{"operationId":"list_song_arrangements","summary":"List song arrangements with song, arrangement name, authors, tempo, last-used time and the keys as text. Paged. Use for ","description":"List song arrangements with song, arrangement name, authors, tempo, last-used time and the keys as text. Paged. Use for \"Which arrangements of 'Faithfulness' 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"},"title":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only arrangements whose song title or arrangement name contains this text.","title":"Title"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many records to return per page (1 to 100). The service default is 50.","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_song_arrangementsArguments","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_serving_opportunities":{"post":{"operationId":"list_serving_opportunities","summary":"List open group serving positions available for sign-up (active, listed positions with room left) with group, campus and","description":"List open group serving positions available for sign-up (active, listed positions with room left) with group, campus and description. Paged. Needs the Full Read Service Plans permission on the key. Use for \"What volunteer positions are open for sign-up\".","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 positions whose name contains this text.","title":"Name"},"group":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only positions whose group name contains this text.","title":"Group"},"campus":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated campus ids; -1 for groups without a campus.","title":"Campus"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many records to return per page (1 to 100). The service default is 50.","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_serving_opportunitiesArguments","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}}}}