Connectors
/v1/connectors/v1/connectors/{name}- post
/v1/connectors/{name}/{operation} - post
/v1/connectors/{name}/{operation}/read
Connectors
/v1/connectorsResponses
200
connectorsstageofferedusableconnectsformoauthoffline_input
429
errormessagetypecodeparamnexusminimum
Errors
| Status | Code | When |
|---|---|---|
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 429 | Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap). | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl "$NEXUS_URL/v1/connectors" \
-H "Authorization: Bearer $NEXUS_API_KEY"import { createCoreClient } from "@nexus/kit";
const core = createCoreClient({ baseUrl: process.env.NEXUS_URL!, apiKey: process.env.NEXUS_API_KEY });
const result = await core.connectors();Describe connector
/v1/connectors/{name}Parameters
name
Responses
200
namedescriptionstageofferedusableconnectsformoauthoperationsnamesummaryeffectrequest
429
errormessagetypecodeparamnexusminimum
Errors
| Status | Code | When |
|---|---|---|
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 404 | not_found | Nothing matches the path in your organization |
| 429 | Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap). | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl "$NEXUS_URL/v1/connectors/Platform" \
-H "Authorization: Bearer $NEXUS_API_KEY"Write connector
post
/v1/connectors/{name}/{operation}Parameters
nameoperationx-nexus-approvalx-nexus-cloud-sessionx-nexus-fencing-tokenIdempotency-Key
Request body · application/json
Responses
200
428
errormessagetypecodeparamnexusminimum
429
errormessagetypecodeparamnexusminimum
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request_error | A field is missing or not valid; the message names it |
| 400 | merge_method_refused | 400 `merge_method_refused`, 409 `head_changed`, `not_mergeable` or `pull_not_open` |
| 400 | invalid_session_fence | 400 `invalid_session_fence` without both, 404 `session_not_found` for a session that is not yours, 409 `session_ended` for an ended one, and 409 `lost_runner` when another runner took the session; nothing is called, and the refusal is audited |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 403 | write_not_granted | A change runs only for a module holding a write grant for it (PUT /v1/policies/grants/{product}/{capability}); a person's change is refused with 403 `write_not_granted` until people get write scopes |
| 403 | write_consent_required | When the server asks for write scopes on demand (NEXUS_CONNECTOR_WRITE_CONSENT), a change on an OAuth connection that holds none of the connector's write scopes is refused with 403 `write_consent_required`; nothing is called |
| 404 | not_found | Nothing matches the path in your organization |
| 404 | label_unknown | 404 `label_unknown` |
| 404 | session_not_found | 400 `invalid_session_fence` without both, 404 `session_not_found` for a session that is not yours, 409 `session_ended` for an ended one, and 409 `lost_runner` when another runner took the session; nothing is called, and the refusal is audited |
| 409 | head_changed | 400 `merge_method_refused`, 409 `head_changed`, `not_mergeable` or `pull_not_open` |
| 409 | pull_not_open | `github/pull_edit` and `pull_reviewers` change only an open pull request (409 `pull_not_open`), and GitHub's refusal of a reviewer is 422 `reviewer_refused` |
| 409 | pull_merged | 409 `pull_merged`, 422 `not_reopenable` |
| 409 | session_ended | 400 `invalid_session_fence` without both, 404 `session_not_found` for a session that is not yours, 409 `session_ended` for an ended one, and 409 `lost_runner` when another runner took the session; nothing is called, and the refusal is audited |
| 409 | lost_runner | 400 `invalid_session_fence` without both, 404 `session_not_found` for a session that is not yours, 409 `session_ended` for an ended one, and 409 `lost_runner` when another runner took the session; nothing is called, and the refusal is audited |
| 409 | fence_required | A change that names no fence while its credential holds a native session's live runner lease is refused with 409 `fence_required` (`error.nexus.session` names the session) when the server requires the fence; nothing is called, and the refusal is audited |
| 409 | idempotency_in_progress | A request with the same Idempotency-Key is still running |
| 409 | idempotency_interrupted | The first request with this Idempotency-Key was cut off and may have run in part |
| 422 | reviewer_refused | `github/pull_edit` and `pull_reviewers` change only an open pull request (409 `pull_not_open`), and GitHub's refusal of a reviewer is 422 `reviewer_refused` |
| 422 | not_reopenable | 409 `pull_merged`, 422 `not_reopenable` |
| 422 | idempotency_key_reused | The Idempotency-Key was used with a different request |
| 428 | Only while the Gateway enforces connector write keys (off by default): a change sent without `Idempotency-Key` (`idempotency_key_required`). Nothing was called. | |
| 428 | idempotency_key_required | While the Gateway enforces connector write keys (off by default), a change without one is 428 `idempotency_key_required`, and nothing is called |
| 429 | Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap). | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
| 502 | reconciliation_failed | A retry that cannot read the target is 502 `reconciliation_failed` and writes nothing |
Example
curl -X POST "$NEXUS_URL/v1/connectors/Platform/<operation>" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'Read connector
post
/v1/connectors/{name}/{operation}/readParameters
nameoperation
Request body · application/json
Responses
200
429
errormessagetypecodeparamnexusminimum
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request_error | A field is missing or not valid; the message names it |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 403 | not_a_read | 403 `not_a_read` when the operation changes something (use writeConnector), and 403 `connector_disabled` when the organization has not made the connector available to the caller |
| 403 | connector_disabled | 403 `not_a_read` when the operation changes something (use writeConnector), and 403 `connector_disabled` when the organization has not made the connector available to the caller |
| 404 | not_found | Nothing matches the path in your organization |
| 429 | Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap). | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl -X POST "$NEXUS_URL/v1/connectors/Platform/<operation>/read" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'