{"openapi":"3.1.0","info":{"title":"Cohere (BYOK) API","version":"0.1.0","description":"Cohere (BYOK) lets an AI assistant read your own Cohere data through the Cohere API with a key you supply (API key). Read-only: 8 tools (list_models, get_model, list_datasets, get_dataset_usage, list_embed_jobs, list_batches, list_connectors, list_finetuned_models). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only ever sent...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-cohere.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-cohere/docs"},"termsOfService":"https://connectorbay.com/byok-cohere/terms"},"servers":[{"url":"https://byok-cohere.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-cohere/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_models":{"post":{"operationId":"list_models","summary":"List Cohere models available to the key with the endpoints they support, context length, features and deprecation flag. ","description":"List Cohere models available to the key with the endpoints they support, context length, features and deprecation flag. Use for \"Which Cohere models support the rerank endpoint\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page_size":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Models per page (default 20, maximum 1000).","title":"Page Size"},"page_token":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Token from the previous answer's next_page_token to get the following page.","title":"Page Token"},"endpoint":{"anyOf":[{"enum":["chat","embed","classify","summarize","rerank","rate","generate"],"type":"string"},{"type":"null"}],"default":null,"description":"Only models usable with this endpoint.","title":"Endpoint"},"default_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to return only the default model for the endpoint; needs endpoint to be set.","title":"Default Only"}},"title":"list_modelsArguments","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_model":{"post":{"operationId":"get_model","summary":"Get one Cohere model by name: supported endpoints, context length, features, sampling defaults and deprecation flag. Use","description":"Get one Cohere model by name: supported endpoints, context length, features, sampling defaults and deprecation flag. Use for \"What is the context length of command-a-03-2025\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"model":{"description":"Model name, for example 'command-a-03-2025'.","maxLength":200,"title":"Model","type":"string"}},"required":["model"],"title":"get_modelArguments","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_datasets":{"post":{"operationId":"list_datasets","summary":"List datasets uploaded to your Cohere organization with type, validation status and creation date. Use for \"Which datase","description":"List datasets uploaded to your Cohere organization with type, validation status and creation date. Use for \"Which datasets have I uploaded to Cohere and are they validated\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"dataset_type":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only datasets of this type, for example 'embed-input' or 'chat-finetune-input'.","title":"Dataset Type"},"validation_status":{"anyOf":[{"enum":["unknown","queued","processing","failed","validated","skipped"],"type":"string"},{"type":"null"}],"default":null,"description":"Only datasets with this validation status.","title":"Validation Status"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"How many datasets to return.","title":"Limit"},"offset":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"How many datasets to skip.","title":"Offset"}},"title":"list_datasetsArguments","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_dataset_usage":{"post":{"operationId":"get_dataset_usage","summary":"Show how much dataset storage your Cohere organization currently uses. Use for \"How much dataset storage is my Cohere or","description":"Show how much dataset storage your Cohere organization currently uses. Use for \"How much dataset storage is my Cohere organization using\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_dataset_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_embed_jobs":{"post":{"operationId":"list_embed_jobs","summary":"List your Cohere embed jobs with model, status, input and output dataset ids and creation date. Use for \"What is the sta","description":"List your Cohere embed jobs with model, status, input and output dataset ids and creation date. Use for \"What is the status of my Cohere embed jobs\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_embed_jobsArguments","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_batches":{"post":{"operationId":"list_batches","summary":"List your Cohere batch jobs with model, status, record counts, token counts and dates. Use for \"Did my Cohere batch jobs","description":"List your Cohere batch jobs with model, status, record counts, token counts and dates. Use for \"Did my Cohere batch jobs finish and how many records failed\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Batches per page.","title":"Page Size"},"page_token":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Token from the previous answer's next_page_token to get the following page.","title":"Page Token"},"order_by":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Sort expression, for example 'created_at desc'.","title":"Order By"}},"title":"list_batchesArguments","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_connectors":{"post":{"operationId":"list_connectors","summary":"List the connectors registered in your Cohere organization with name, URL, auth type, status and whether they are active","description":"List the connectors registered in your Cohere organization with name, URL, auth type, status and whether they are active. Use for \"Which Cohere connectors do I have registered\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":30,"description":"How many connectors to return (default 30).","title":"Limit"},"offset":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"How many connectors to skip.","title":"Offset"}},"title":"list_connectorsArguments","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_finetuned_models":{"post":{"operationId":"list_finetuned_models","summary":"List fine-tuned models in your Cohere organization with status, base model and dates. Use for \"Which fine-tuned Cohere m","description":"List fine-tuned models in your Cohere organization with status, base model and dates. Use for \"Which fine-tuned Cohere models do I have and are they ready\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Models per page.","title":"Page Size"},"page_token":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Token from the previous answer's next_page_token to get the following page.","title":"Page Token"},"order_by":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Sort expression, for example 'created_at desc'.","title":"Order By"}},"title":"list_finetuned_modelsArguments","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}}}}