---
title: "Validate credentials against their cloud provider and report the outcome"
method: POST
path: "/credentials/{credentialsId}/validate"
tags: ["credentials"]
---

# Validate credentials against their cloud provider and report the outcome

`POST /credentials/{credentialsId}/validate`

## Path parameters

- `credentialsId` string, required

## Query parameters

- `workspaceId` integer
- `force` boolean

## Response `200`

Validation outcome — inspect status and the transientError flag on the response body

- ValidateCredentialsResponse
  - `message` string, nullable — Provider-supplied error detail. Null when the credentials are valid.
  - `status` 'AVAILABLE' | 'INVALID'
  - `transientError` boolean — True when validation could not reach the provider (network error / 5xx). When true the persisted status is left untouched and MUST NOT be interpreted as an authoritative reject.

## Other responses

- `400` — Bad request
- `403` — Operation not allowed
- `404` — Credentials not found
- `409` — Force override rejected — credential is not INVALID

---

[API](https://skmtc.net/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.net/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/versions/13316c9fe5ff/schema)
