Apps
List apps
/v1/appsResponses
200
appsidnameuserIdurlstateframeworkprojectNamedeployedAtclaimRequestedAtcreatedAtupdatedAtcostToDatecost30dcostUpdatedAtbillingErrormonthlyCapUsdmonthSpendUsdpauseAtpausedReason
403
404
429
errormessagetypecodeparamnexusminimum
503
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 | Nexus Apps is off on this Gateway (`apps_off`). | |
| 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 |
| 503 | Nexus Apps has no Vercel token and team on this Gateway (`apps_unavailable`). |
Example
curl "$NEXUS_URL/v1/apps" \
-H "Authorization: Bearer $NEXUS_API_KEY"Deploy app
post
/v1/appsParameters
Idempotency-Key
Request body · application/json
nameframeworkfilespathdata
Responses
200
idnameuserIdurlstateframeworkprojectNamedeployedAtclaimRequestedAtcreatedAtupdatedAtcostToDatecost30dcostUpdatedAtbillingErrormonthlyCapUsdmonthSpendUsdpauseAtpausedReason
201
idnameuserIdurlstateframeworkprojectNamedeployedAtclaimRequestedAtcreatedAtupdatedAtcostToDatecost30dcostUpdatedAtbillingErrormonthlyCapUsdmonthSpendUsdpauseAtpausedReason
400
402
403
404
409
413
422
429
502
503
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request_error | A field is missing or not valid; the message names it |
| 400 | The body is not a deploy: `name` (`invalid_name`), `framework` (`invalid_framework`) or `files` (`invalid_files`: none, too many, a bad or repeated path, or data that is not base64). | |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 402 | budget_exceeded | Add a saved card, resolve unpaid hosting, repay credit debt, or raise the app cap (apps_card_required, apps_payment_pending, apps_debt_pending, app_paused). |
| 403 | role_required | Your role does not have this permission |
| 404 | Nexus Apps is off on this Gateway (`apps_off`). | |
| 409 | Another member of your organization has an app of this name (`app_name_taken`), or the app's Vercel project left Nexus's team (`app_gone`): it was claimed or deleted at Vercel. | |
| 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 |
| 413 | The files are more than 20 MB decoded (`app_too_large`), or the body more than 30 MB. | |
| 422 | Vercel refused the project or the deployment (`vercel_refused`), with Vercel's own message. | |
| 422 | idempotency_key_reused | The Idempotency-Key was used with a different request |
| 429 | Your organization holds its most apps (`apps_limit`, `NEXUS_APPS_MAX_PER_TENANT`): delete one first. Also the caller's rate limit. | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
| 502 | Vercel failed or did not answer (`vercel_error`); try again. | |
| 503 | Nexus Apps has no Vercel token and team on this Gateway (`apps_unavailable`). |
Example
curl -X POST "$NEXUS_URL/v1/apps" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Platform",
"files": [
{
"path": "<path>",
"data": "<data>"
}
]
}'Get app
/v1/apps/{id}Parameters
id
Responses
200
idnameuserIdurlstateframeworkprojectNamedeployedAtclaimRequestedAtcreatedAtupdatedAtcostToDatecost30dcostUpdatedAtbillingErrormonthlyCapUsdmonthSpendUsdpauseAtpausedReason
403
404
429
errormessagetypecodeparamnexusminimum
503
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 |
| 404 | Nexus Apps is off on this Gateway (`apps_off`), or no such app reaches you: another member's and another organization's are as absent as a missing one. | |
| 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 |
| 503 | Nexus Apps has no Vercel token and team on this Gateway (`apps_unavailable`). |
Example
curl "$NEXUS_URL/v1/apps/<id>" \
-H "Authorization: Bearer $NEXUS_API_KEY"Delete app
DEL
/v1/apps/{id}Parameters
idIdempotency-Key
Responses
200
iddeleted
403
404
422
429
errormessagetypecodeparamnexusminimum
502
503
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 |
| 404 | Nexus Apps is off on this Gateway (`apps_off`), or no such app reaches you: another member's and another organization's are as absent as a missing one. | |
| 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 | Vercel refused the delete (`vercel_refused`). | |
| 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 |
| 502 | Vercel failed or did not answer (`vercel_error`); try again. | |
| 503 | Nexus Apps has no Vercel token and team on this Gateway (`apps_unavailable`). |
Example
curl -X DELETE "$NEXUS_URL/v1/apps/<id>" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"Claim app
post
/v1/apps/{id}/claimParameters
idIdempotency-Key
Responses
200
idclaimUrlexpiresAt
403
404
409
422
429
errormessagetypecodeparamnexusminimum
502
503
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 |
| 404 | Nexus Apps is off on this Gateway (`apps_off`), or no such app reaches you: another member's and another organization's are as absent as a missing one. | |
| 409 | The app has no Vercel project yet (`app_not_deployed`), or its project left Nexus's team (`app_gone`). | |
| 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 | Vercel refused the transfer request (`vercel_refused`). | |
| 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 |
| 502 | Vercel failed or did not answer (`vercel_error`); try again. | |
| 503 | Nexus Apps has no Vercel token and team on this Gateway (`apps_unavailable`). |
Example
curl -X POST "$NEXUS_URL/v1/apps/<id>/claim" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"Set app cap
/v1/apps/{id}/capParameters
id
Request body · application/json
monthlyCapUsd
Responses
200
idnameuserIdurlstateframeworkprojectNamedeployedAtclaimRequestedAtcreatedAtupdatedAtcostToDatecost30dcostUpdatedAtbillingErrormonthlyCapUsdmonthSpendUsdpauseAtpausedReason
403
404
429
errormessagetypecodeparamnexusminimum
503
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 |
| 404 | not_found | Nothing matches the path in your organization |
| 404 | Nexus Apps is off on this Gateway (`apps_off`), or no such app reaches you: another member's and another organization's are as absent as a missing one. | |
| 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 |
| 503 | Nexus Apps has no Vercel token and team on this Gateway (`apps_unavailable`). |
Example
curl -X PUT "$NEXUS_URL/v1/apps/<id>/cap" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"monthlyCapUsd": "<monthlyCapUsd>"
}'