{"openapi":"3.1.0","info":{"title":"FDA Data Dashboard (BYOK) API","version":"0.1.0","description":"FDA Data Dashboard (BYOK) lets an AI assistant read your own FDA Data Dashboard data through the FDA Data Dashboard API with a key you supply (FDA Data Dashboard Authorization-Key). Read-only: 10 tools (list_inspection_classifications, find_inspections_by_firm, find_inspections_by_classification, list_inspection_citations, find_citations_by_firm, list_compliance_actions,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-fda-datadashboard.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-fda-datadashboard/docs"},"termsOfService":"https://connectorbay.com/byok-fda-datadashboard/terms"},"servers":[{"url":"https://byok-fda-datadashboard.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-fda-datadashboard/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_inspection_classifications":{"post":{"operationId":"list_inspection_classifications","summary":"List FDA establishment inspection outcomes (No Action, Voluntary Action or Official Action Indicated) with firm, place, ","description":"List FDA establishment inspection outcomes (No Action, Voluntary Action or Official Action Indicated) with firm, place, product type and end date. Use for \"What are the most recent FDA inspection classifications\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"start":{"anyOf":[{"maximum":1000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Number of the first row to return, starting at 1; add the rows value to page forward.","title":"Start"},"rows":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many rows to return (1 to 500; the service allows 5000).","title":"Rows"},"include_total":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True to also get the total number of matching records in totalrecordcount.","title":"Include Total"},"sort_order":{"anyOf":[{"enum":["ASC","DESC"],"type":"string"},{"type":"null"}],"default":"DESC","description":"Sort direction on the date column: ASC or DESC.","title":"Sort Order"}},"title":"list_inspection_classificationsArguments","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/find_inspections_by_firm":{"post":{"operationId":"find_inspections_by_firm","summary":"Find FDA inspection outcomes for firms whose legal name contains the given text. Use for \"What FDA inspections have been","description":"Find FDA inspection outcomes for firms whose legal name contains the given text. Use for \"What FDA inspections have been recorded for firms named Pharma\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"firm_name":{"description":"Firm name to look for; matches names that contain this text, for example 'Pharma'.","maxLength":100,"title":"Firm Name","type":"string"},"start":{"anyOf":[{"maximum":1000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Number of the first row to return, starting at 1; add the rows value to page forward.","title":"Start"},"rows":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many rows to return (1 to 500; the service allows 5000).","title":"Rows"},"include_total":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True to also get the total number of matching records in totalrecordcount.","title":"Include Total"},"sort_order":{"anyOf":[{"enum":["ASC","DESC"],"type":"string"},{"type":"null"}],"default":"DESC","description":"Sort direction on the date column: ASC or DESC.","title":"Sort Order"}},"required":["firm_name"],"title":"find_inspections_by_firmArguments","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/find_inspections_by_classification":{"post":{"operationId":"find_inspections_by_classification","summary":"Find FDA inspections with one decision classification code: NAI (no action), VAI (voluntary action) or OAI (official act","description":"Find FDA inspections with one decision classification code: NAI (no action), VAI (voluntary action) or OAI (official action indicated). Use for \"Which FDA inspections ended with Official Action Indicated\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"classification_code":{"description":"Decision classification code: NAI, VAI or OAI.","enum":["NAI","VAI","OAI"],"title":"Classification Code","type":"string"},"start":{"anyOf":[{"maximum":1000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Number of the first row to return, starting at 1; add the rows value to page forward.","title":"Start"},"rows":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many rows to return (1 to 500; the service allows 5000).","title":"Rows"},"include_total":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True to also get the total number of matching records in totalrecordcount.","title":"Include Total"},"sort_order":{"anyOf":[{"enum":["ASC","DESC"],"type":"string"},{"type":"null"}],"default":"DESC","description":"Sort direction on the date column: ASC or DESC.","title":"Sort Order"}},"required":["classification_code"],"title":"find_inspections_by_classificationArguments","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_inspection_citations":{"post":{"operationId":"list_inspection_citations","summary":"List the regulation citations (CFR or FD&C Act sections) FDA posted after inspections, with firm, program area and short","description":"List the regulation citations (CFR or FD&C Act sections) FDA posted after inspections, with firm, program area and short description. Use for \"What citations did FDA post after recent inspections\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"start":{"anyOf":[{"maximum":1000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Number of the first row to return, starting at 1; add the rows value to page forward.","title":"Start"},"rows":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many rows to return (1 to 500; the service allows 5000).","title":"Rows"},"include_total":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True to also get the total number of matching records in totalrecordcount.","title":"Include Total"},"sort_order":{"anyOf":[{"enum":["ASC","DESC"],"type":"string"},{"type":"null"}],"default":"DESC","description":"Sort direction on the date column: ASC or DESC.","title":"Sort Order"}},"title":"list_inspection_citationsArguments","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/find_citations_by_firm":{"post":{"operationId":"find_citations_by_firm","summary":"Find FDA inspection citations for firms whose legal name contains the given text. Use for \"What FDA citations has a firm","description":"Find FDA inspection citations for firms whose legal name contains the given text. Use for \"What FDA citations has a firm named Foods received\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"firm_name":{"description":"Firm name to look for; matches names that contain this text, for example 'Pharma'.","maxLength":100,"title":"Firm Name","type":"string"},"start":{"anyOf":[{"maximum":1000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Number of the first row to return, starting at 1; add the rows value to page forward.","title":"Start"},"rows":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many rows to return (1 to 500; the service allows 5000).","title":"Rows"},"include_total":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True to also get the total number of matching records in totalrecordcount.","title":"Include Total"},"sort_order":{"anyOf":[{"enum":["ASC","DESC"],"type":"string"},{"type":"null"}],"default":"DESC","description":"Sort direction on the date column: ASC or DESC.","title":"Sort Order"}},"required":["firm_name"],"title":"find_citations_by_firmArguments","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_compliance_actions":{"post":{"operationId":"list_compliance_actions","summary":"List FDA compliance actions (warning letters, seizures, injunctions) with firm, product type, action type and date. Use ","description":"List FDA compliance actions (warning letters, seizures, injunctions) with firm, product type, action type and date. Use for \"What compliance actions has FDA taken recently\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"start":{"anyOf":[{"maximum":1000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Number of the first row to return, starting at 1; add the rows value to page forward.","title":"Start"},"rows":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many rows to return (1 to 500; the service allows 5000).","title":"Rows"},"include_total":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True to also get the total number of matching records in totalrecordcount.","title":"Include Total"},"sort_order":{"anyOf":[{"enum":["ASC","DESC"],"type":"string"},{"type":"null"}],"default":"DESC","description":"Sort direction on the date column: ASC or DESC.","title":"Sort Order"}},"title":"list_compliance_actionsArguments","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/find_compliance_actions_by_type":{"post":{"operationId":"find_compliance_actions_by_type","summary":"Find FDA compliance actions of one type: Warning Letter, Seizure or Injunction. Use for \"List recent FDA warning letters","description":"Find FDA compliance actions of one type: Warning Letter, Seizure or Injunction. Use for \"List recent FDA warning letters\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"action_type":{"description":"Action type: Warning Letter, Seizure or Injunction.","enum":["Warning Letter","Seizure","Injunction"],"title":"Action Type","type":"string"},"start":{"anyOf":[{"maximum":1000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Number of the first row to return, starting at 1; add the rows value to page forward.","title":"Start"},"rows":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many rows to return (1 to 500; the service allows 5000).","title":"Rows"},"include_total":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True to also get the total number of matching records in totalrecordcount.","title":"Include Total"},"sort_order":{"anyOf":[{"enum":["ASC","DESC"],"type":"string"},{"type":"null"}],"default":"DESC","description":"Sort direction on the date column: ASC or DESC.","title":"Sort Order"}},"required":["action_type"],"title":"find_compliance_actions_by_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/find_compliance_actions_by_firm":{"post":{"operationId":"find_compliance_actions_by_firm","summary":"Find FDA compliance actions against firms whose legal name contains the given text. Use for \"Has FDA taken compliance ac","description":"Find FDA compliance actions against firms whose legal name contains the given text. Use for \"Has FDA taken compliance action against a firm named Devices\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"firm_name":{"description":"Firm name to look for; matches names that contain this text, for example 'Pharma'.","maxLength":100,"title":"Firm Name","type":"string"},"start":{"anyOf":[{"maximum":1000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Number of the first row to return, starting at 1; add the rows value to page forward.","title":"Start"},"rows":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many rows to return (1 to 500; the service allows 5000).","title":"Rows"},"include_total":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True to also get the total number of matching records in totalrecordcount.","title":"Include Total"},"sort_order":{"anyOf":[{"enum":["ASC","DESC"],"type":"string"},{"type":"null"}],"default":"DESC","description":"Sort direction on the date column: ASC or DESC.","title":"Sort Order"}},"required":["firm_name"],"title":"find_compliance_actions_by_firmArguments","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_import_refusals":{"post":{"operationId":"list_import_refusals","summary":"List imported products FDA refused at the border, with firm, country, product category and code, refusal date and charge","description":"List imported products FDA refused at the border, with firm, country, product category and code, refusal date and charge codes. Use for \"Which imported products did FDA refuse recently\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"start":{"anyOf":[{"maximum":1000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Number of the first row to return, starting at 1; add the rows value to page forward.","title":"Start"},"rows":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many rows to return (1 to 500; the service allows 5000).","title":"Rows"},"include_total":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True to also get the total number of matching records in totalrecordcount.","title":"Include Total"},"sort_order":{"anyOf":[{"enum":["ASC","DESC"],"type":"string"},{"type":"null"}],"default":"DESC","description":"Sort direction on the date column: ASC or DESC.","title":"Sort Order"}},"title":"list_import_refusalsArguments","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/find_import_refusals_by_country":{"post":{"operationId":"find_import_refusals_by_country","summary":"Find FDA import refusals for firms in one country, given as a two-letter country code such as IN or MX. Use for \"Which F","description":"Find FDA import refusals for firms in one country, given as a two-letter country code such as IN or MX. Use for \"Which FDA import refusals involve firms in India\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"country_code":{"description":"Two-letter country code of the firm, for example IN, MX or CN.","maxLength":2,"title":"Country Code","type":"string"},"start":{"anyOf":[{"maximum":1000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Number of the first row to return, starting at 1; add the rows value to page forward.","title":"Start"},"rows":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many rows to return (1 to 500; the service allows 5000).","title":"Rows"},"include_total":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True to also get the total number of matching records in totalrecordcount.","title":"Include Total"},"sort_order":{"anyOf":[{"enum":["ASC","DESC"],"type":"string"},{"type":"null"}],"default":"DESC","description":"Sort direction on the date column: ASC or DESC.","title":"Sort Order"}},"required":["country_code"],"title":"find_import_refusals_by_countryArguments","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}}}}