Connections

Connect a provider

Check and store the credentials. A demo account gets status demo: nothing is checked, stored, or launched with it.

POST/v1/provider-connectionsAPI key

Authorization

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

Body

providerenum<string>required

Available options: modal runpod lambda vast nebius nationalcompute ghcr

credentialsobjectrequired

Responses

201application/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
409application/json

PROVIDER_CONNECTION_EXISTS: the user already has a connection to this provider; replace or delete it instead.

PROVIDER_CONNECTION_EXISTS
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

connect_provider: Connect a provider account so runs can launch in it: credentials is a mapping of the fields list_providers names (Modal: token_id and token_secret). They are checked with the provider and stored encrypted, never echoed. PROVIDER_CREDENTIALS_INVALID when rejected, PROVIDER_CONNECTION_EXISTS when the provider is already connected (use replace_connection). This is the remedy for PROVIDER_CONNECTION_REQUIRED. Free.