GitHub
/v1/github/app/v1/github/repositories- post
/v1/github/installations - DEL
/v1/github/installations/{id} - post
/v1/github/repositories/{id}/wiki - post
/v1/github/webhook
GitHub app
/v1/github/appResponses
200
configuredsluginstallUrl
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/github/app" \
-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.githubApp();List repositories
/v1/github/repositoriesResponses
200
installationsrepositoriesidfullNameurldefaultBranchprivatelinkedAtlastWikiRun
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/github/repositories" \
-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.repositories();Link installation
post
/v1/github/installationsParameters
Idempotency-Key
Request body · application/json
installationIdstatecode
Responses
201
installationsrepositoriesidfullNameurldefaultBranchprivatelinkedAtlastWikiRun
installerChecked
400
errormessagetypecodeparamnexusminimum
403
errormessagetypecodeparamnexusminimum
409
errormessagetypecodeparamnexusminimum
429
errormessagetypecodeparamnexusminimum
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request_error | A field is missing or not valid; the message names it |
| 400 | No `installationId`, no `state` (`missing_state`), or a `state` Nexus did not sign (`invalid_state`) | |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 403 | invalid_code | 403 `invalid_code` for a code GitHub refuses, 403 `installer_not_authorized` otherwise |
| 403 | installer_not_authorized | 403 `invalid_code` for a code GitHub refuses, 403 `installer_not_authorized` otherwise |
| 409 | This org's install link expired (`invalid_state`), or another org already linked the installation (`installation_taken`) | |
| 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 | idempotency_key_reused | The Idempotency-Key was used with a different request |
| 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/github/installations" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"installationId": "12345678",
"state": "…"
}'Unlink installation
DEL
/v1/github/installations/{id}Parameters
idIdempotency-Key
Responses
200
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 |
| 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 | idempotency_key_reused | The Idempotency-Key was used with a different request |
| 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 DELETE "$NEXUS_URL/v1/github/installations/<id>" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"import { createCoreClient } from "@nexus/kit";
const core = createCoreClient({ baseUrl: process.env.NEXUS_URL!, apiKey: process.env.NEXUS_API_KEY });
const result = await core.unlinkInstallation("<installation id>");Run repository Wiki
post
/v1/github/repositories/{id}/wikiParameters
idIdempotency-Key
Responses
202
runId
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 |
| 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 | idempotency_key_reused | The Idempotency-Key was used with a different request |
| 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/github/repositories/<id>/wiki" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"GitHub webhook
post
/v1/github/webhookResponses
202
Errors
| Status | Code | When |
|---|
Example
curl -X POST "$NEXUS_URL/v1/github/webhook"