From 85b406ce6b516ac7d0af87ef1ea6133725d09195 Mon Sep 17 00:00:00 2001 From: Alex Ezell Date: Mon, 19 Oct 2026 08:00:16 -0500 Subject: [PATCH 1/8] Document creating a Custom API connector through the API Add the POST /v1/oauth/connections/custom_api example beside the API-key one, with the auth_method values and their companion fields, the test and update endpoints, and a warning that a connector's name is its identity within the organization: creating another with the same name updates the existing connector. --- concepts/connectors.mdx | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/concepts/connectors.mdx b/concepts/connectors.mdx index b7d2ec1..c2c0ee9 100644 --- a/concepts/connectors.mdx +++ b/concepts/connectors.mdx @@ -184,6 +184,39 @@ curl -X POST "https://api.sprites.dev/v1/oauth/connections/api_key" \ -d '{ "provider": "openrouter", "api_key": "sk-or-v1-...", "access_policy": { "allow_all": true } }' ``` +### Create a Custom API connector + +Wraps any token-authenticated HTTP API. `name`, `base_api_url` and `access_token` are required; everything else is optional. + +```bash +curl -X POST "https://api.sprites.dev/v1/oauth/connections/custom_api" \ + -H "Authorization: Bearer $SPRITES_TOKEN" \ + -H "Content-Type: application/json" \ + -d '{ + "name": "acme-api", + "base_api_url": "https://api.acme.example", + "access_token": "sk-live-...", + "auth_method": "header", + "auth_header_prefix": "Bearer", + "test_url": "https://api.acme.example/me", + "description": "Acme production account", + "access_policy": { "sprite_labels": ["acme"] } + }' +``` + +`auth_method` says where the credential goes on each provider request: + +| `auth_method` | Credential placement | Companion field | +| --- | --- | --- | +| `header` (default) | `Authorization: ` | `auth_header_prefix`, default `Bearer` | +| `url_path` | Substituted for `{token}` in a path segment after `base_api_url` | `auth_url_path_template` | +| `query_param` | Appended as a query parameter | `auth_query_param_name`, default `api_key` | +| `custom_header` | Sent as a header of your choosing | `auth_custom_header_name`, default `X-Api-Key` | + +The connector's `name` is its identity within your organization. Creating a second Custom API connector with the same name updates the existing one in place rather than adding another, so pick distinct names for distinct APIs. + +To check a credential before (or without) saving it, send the same body to `POST /v1/oauth/connections/custom_api/test`. The outcome comes back in the 200 response as `result.status` of `ok` or `error`. To change a saved connector, `PUT /v1/oauth/connections/custom_api/` with only the fields you want to replace; a blank or omitted `access_token` keeps the stored credential. + ### Enable a managed connector ```bash From 38017e4ea8b175f90b00a00c3744971479914165 Mon Sep 17 00:00:00 2001 From: Alex Ezell Date: Tue, 20 Oct 2026 08:43:04 -0500 Subject: [PATCH 2/8] Update concepts/connectors.mdx Co-authored-by: Kristin Martin --- concepts/connectors.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concepts/connectors.mdx b/concepts/connectors.mdx index c2c0ee9..9b4d330 100644 --- a/concepts/connectors.mdx +++ b/concepts/connectors.mdx @@ -184,7 +184,7 @@ curl -X POST "https://api.sprites.dev/v1/oauth/connections/api_key" \ -d '{ "provider": "openrouter", "api_key": "sk-or-v1-...", "access_policy": { "allow_all": true } }' ``` -### Create a Custom API connector +### Create a custom API connector Wraps any token-authenticated HTTP API. `name`, `base_api_url` and `access_token` are required; everything else is optional. From 0d99b84e7d72f3a40aa41aa1678a2bdcb21de20f Mon Sep 17 00:00:00 2001 From: Alex Ezell Date: Tue, 20 Oct 2026 08:43:26 -0500 Subject: [PATCH 3/8] Update concepts/connectors.mdx Co-authored-by: Kristin Martin --- concepts/connectors.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concepts/connectors.mdx b/concepts/connectors.mdx index 9b4d330..09bcd2d 100644 --- a/concepts/connectors.mdx +++ b/concepts/connectors.mdx @@ -186,7 +186,7 @@ curl -X POST "https://api.sprites.dev/v1/oauth/connections/api_key" \ ### Create a custom API connector -Wraps any token-authenticated HTTP API. `name`, `base_api_url` and `access_token` are required; everything else is optional. +Use a custom API connector to give your Sprites access to an HTTP API that authenticates with a token. You need to provide `name`, `base_api_url`, and `access_token`. The other fields are optional. ```bash curl -X POST "https://api.sprites.dev/v1/oauth/connections/custom_api" \ From ff3f330d74ec577422d8753a92b5f808dea6d879 Mon Sep 17 00:00:00 2001 From: Alex Ezell Date: Tue, 20 Oct 2026 08:43:36 -0500 Subject: [PATCH 4/8] Update concepts/connectors.mdx Co-authored-by: Kristin Martin --- concepts/connectors.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concepts/connectors.mdx b/concepts/connectors.mdx index 09bcd2d..ce9c50f 100644 --- a/concepts/connectors.mdx +++ b/concepts/connectors.mdx @@ -204,7 +204,7 @@ curl -X POST "https://api.sprites.dev/v1/oauth/connections/custom_api" \ }' ``` -`auth_method` says where the credential goes on each provider request: +Use `auth_method` to specify how the connector sends the credential with each API request: | `auth_method` | Credential placement | Companion field | | --- | --- | --- | From e90529a366ee71ca98019efc80e19bf65ea81d7f Mon Sep 17 00:00:00 2001 From: Alex Ezell Date: Tue, 20 Oct 2026 08:43:45 -0500 Subject: [PATCH 5/8] Update concepts/connectors.mdx Co-authored-by: Kristin Martin --- concepts/connectors.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concepts/connectors.mdx b/concepts/connectors.mdx index ce9c50f..0def1c4 100644 --- a/concepts/connectors.mdx +++ b/concepts/connectors.mdx @@ -206,7 +206,7 @@ curl -X POST "https://api.sprites.dev/v1/oauth/connections/custom_api" \ Use `auth_method` to specify how the connector sends the credential with each API request: -| `auth_method` | Credential placement | Companion field | +| `auth_method` | How the credential is sent | Companion field | | --- | --- | --- | | `header` (default) | `Authorization: ` | `auth_header_prefix`, default `Bearer` | | `url_path` | Substituted for `{token}` in a path segment after `base_api_url` | `auth_url_path_template` | From 212c46157d20d74ba08d57abc3916c61b9a521b3 Mon Sep 17 00:00:00 2001 From: Alex Ezell Date: Tue, 20 Oct 2026 08:43:54 -0500 Subject: [PATCH 6/8] Update concepts/connectors.mdx Co-authored-by: Kristin Martin --- concepts/connectors.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concepts/connectors.mdx b/concepts/connectors.mdx index 0def1c4..06dba33 100644 --- a/concepts/connectors.mdx +++ b/concepts/connectors.mdx @@ -213,7 +213,7 @@ Use `auth_method` to specify how the connector sends the credential with each AP | `query_param` | Appended as a query parameter | `auth_query_param_name`, default `api_key` | | `custom_header` | Sent as a header of your choosing | `auth_custom_header_name`, default `X-Api-Key` | -The connector's `name` is its identity within your organization. Creating a second Custom API connector with the same name updates the existing one in place rather than adding another, so pick distinct names for distinct APIs. +Custom API connector names are unique within your organization. If you create a custom API connector with a name that already exists, Sprites updates the existing connector instead of creating a new one. Use a different name for each API. To check a credential before (or without) saving it, send the same body to `POST /v1/oauth/connections/custom_api/test`. The outcome comes back in the 200 response as `result.status` of `ok` or `error`. To change a saved connector, `PUT /v1/oauth/connections/custom_api/` with only the fields you want to replace; a blank or omitted `access_token` keeps the stored credential. From 7d87c1ce1f30519ee58920ebdfb68b251a065c69 Mon Sep 17 00:00:00 2001 From: Alex Ezell Date: Tue, 20 Oct 2026 08:44:03 -0500 Subject: [PATCH 7/8] Update concepts/connectors.mdx Co-authored-by: Kristin Martin --- concepts/connectors.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/concepts/connectors.mdx b/concepts/connectors.mdx index 06dba33..8d4980b 100644 --- a/concepts/connectors.mdx +++ b/concepts/connectors.mdx @@ -215,7 +215,9 @@ Use `auth_method` to specify how the connector sends the credential with each AP Custom API connector names are unique within your organization. If you create a custom API connector with a name that already exists, Sprites updates the existing connector instead of creating a new one. Use a different name for each API. -To check a credential before (or without) saving it, send the same body to `POST /v1/oauth/connections/custom_api/test`. The outcome comes back in the 200 response as `result.status` of `ok` or `error`. To change a saved connector, `PUT /v1/oauth/connections/custom_api/` with only the fields you want to replace; a blank or omitted `access_token` keeps the stored credential. +You can test a credential without saving the connector. Send the same request body to `POST /v1/oauth/connections/custom_api/test`. The endpoint returns HTTP 200 with `result.status` set to `ok` or `error`. + +To update an existing connector, send a `PUT` request to `/v1/oauth/connections/custom_api/` with the fields you want to change. Leave `access_token` blank or omit it to keep the existing credential. ### Enable a managed connector From e54cc4ec86704360a484fa650247fa31d2cd05a2 Mon Sep 17 00:00:00 2001 From: Alex Ezell Date: Fri, 13 Nov 2026 11:30:44 -0600 Subject: [PATCH 8/8] Update concepts/connectors.mdx Co-authored-by: Kristin Martin --- concepts/connectors.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concepts/connectors.mdx b/concepts/connectors.mdx index 8d4980b..bd4ddad 100644 --- a/concepts/connectors.mdx +++ b/concepts/connectors.mdx @@ -217,7 +217,7 @@ Custom API connector names are unique within your organization. If you create a You can test a credential without saving the connector. Send the same request body to `POST /v1/oauth/connections/custom_api/test`. The endpoint returns HTTP 200 with `result.status` set to `ok` or `error`. -To update an existing connector, send a `PUT` request to `/v1/oauth/connections/custom_api/` with the fields you want to change. Leave `access_token` blank or omit it to keep the existing credential. +To update an existing connector, send a `PUT` request to `/v1/oauth/connections/custom_api/` with the fields you want to change. Leave `access_token` blank or omit it to keep the existing credential. If you change `base_api_url` or `test_url` to a different origin, include a new `access_token` in the same request. ### Enable a managed connector