Connections

Replace connection credentials

Check and store new credentials for the connection; the old ones stay until the check passes.

PATCH/v1/provider-connections/{id}API key

Authorization

Send Authorization: Bearer gr_... with a key from the Developer access page. The browser session cookie gpu_router_session also works.

Path parameters

idstringrequired

Body

credentialsobjectrequired

Responses

200application/json

Successful Response

Show response attributes
idstringrequired
user_idstringrequired
providerenum<string>required

Available options: modal runpod lambda vast nebius nationalcompute ghcr

statusenum<string>required

Available options: connected invalid unavailable demo

last_checked_atstring<date-time>required
created_atstring<date-time>required
401application/json

UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.

UNAUTHENTICATED
403application/json

CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.

CSRF_ORIGIN_MISMATCH
404application/json

PROVIDER_CONNECTION_NOT_FOUND: no connection with this id belongs to the signed-in user.

PROVIDER_CONNECTION_NOT_FOUND
422application/json

VALIDATION_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_INVALID
429application/json

RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.

RATE_LIMITED
500application/json

Unexpected failure: INTERNAL_ERROR.

INTERNAL_ERROR
502application/json

AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).

AUTH_PROVIDER_REJECTED
503application/json

PROVIDER_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_UNAVAILABLE

MCP tool

replace_connection: Replace a connection's credentials: they are checked with the provider first and stored encrypted, never echoed. Free.