Connections
Replace connection credentials
Check and store new credentials for the connection; the old ones stay until the check passes.
Authorization
Send Authorization: Bearer gr_... with a key from the Developer access page. The browser session cookie gpu_router_session also works.
Path parameters
idstringrequiredBody
credentialsobjectrequiredResponses
200application/jsonSuccessful Response
Show response attributes
idstringrequireduser_idstringrequiredproviderenum<string>requiredAvailable options: modal runpod lambda vast nebius nationalcompute ghcr
statusenum<string>requiredAvailable options: connected invalid unavailable demo
last_checked_atstring<date-time>requiredcreated_atstring<date-time>required401application/jsonUNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.
UNAUTHENTICATED403application/jsonCSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.
CSRF_ORIGIN_MISMATCH404application/jsonPROVIDER_CONNECTION_NOT_FOUND: no connection with this id belongs to the signed-in user.
PROVIDER_CONNECTION_NOT_FOUND422application/jsonVALIDATION_ERROR: malformed body or credentials that do not match the provider's fields. PROVIDER_CREDENTIALS_INVALID: the provider rejected the credentials; nothing was stored or replaced (not retryable).
VALIDATION_ERRORPROVIDER_CREDENTIALS_INVALID429application/jsonRATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.
RATE_LIMITED500application/jsonUnexpected failure: INTERNAL_ERROR.
INTERNAL_ERROR502application/jsonAUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).
AUTH_PROVIDER_REJECTED503application/jsonPROVIDER_UNAVAILABLE (retryable): the provider timed out or failed, nothing was stored or replaced. AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).
PROVIDER_UNAVAILABLEAUTH_NOT_CONFIGUREDAUTH_PROVIDER_UNAVAILABLEMCP tool
replace_connection: Replace a connection's credentials: they are checked with the provider first and stored encrypted, never echoed. Free.