> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cybedefend.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Store Scaleway Container Registry Credentials

> Store Scaleway API credentials for container registry access

## Path Parameters

<ParamField path="organizationId" type="string" required>
  The UUID of the organization
</ParamField>

## Authorization

Requires `manage_integration` permission on the organization.

## Request Body

<ParamField body="projectId" type="string" required>
  The UUID of the CybeDefend project to associate the credentials with
</ParamField>

<ParamField body="region" type="string" required>
  Scaleway region where the container registry is hosted. One of: `fr-par`, `nl-ams`, `pl-waw`
</ParamField>

<ParamField body="namespaceName" type="string" required>
  The name of the Scaleway Container Registry namespace
</ParamField>

<ParamField body="secretKey" type="string" required>
  Scaleway API secret key for authentication
</ParamField>

<ParamField body="description" type="string">
  Optional description to identify this credential
</ParamField>

<RequestExample>
  ```json theme={null}
  {
    "projectId": "550e8400-e29b-41d4-a716-446655440001",
    "region": "fr-par",
    "namespaceName": "my-production-registry",
    "secretKey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "description": "Production registry credentials"
  }
  ```
</RequestExample>

## Response

Returns the stored credential details (secret key is **not** included in the response).

<ResponseField name="success" type="boolean">
  Whether the request succeeded
</ResponseField>

<ResponseField name="data" type="object">
  <Expandable title="Credential Object">
    <ResponseField name="id" type="string">
      Credential UUID
    </ResponseField>

    <ResponseField name="region" type="string">
      Scaleway region
    </ResponseField>

    <ResponseField name="namespaceId" type="string">
      Resolved Scaleway namespace UUID
    </ResponseField>

    <ResponseField name="namespaceName" type="string">
      Namespace name
    </ResponseField>

    <ResponseField name="registryEndpoint" type="string">
      Registry endpoint URL (e.g., `rg.fr-par.scw.cloud/my-production-registry`)
    </ResponseField>

    <ResponseField name="description" type="string">
      Credential description
    </ResponseField>

    <ResponseField name="createdAt" type="string">
      ISO 8601 creation timestamp
    </ResponseField>

    <ResponseField name="updatedAt" type="string">
      ISO 8601 last update timestamp
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "data": {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "region": "fr-par",
      "namespaceId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "namespaceName": "my-production-registry",
      "registryEndpoint": "rg.fr-par.scw.cloud/my-production-registry",
      "description": "Production registry credentials",
      "createdAt": "2026-03-17T10:30:00.000Z",
      "updatedAt": "2026-03-17T10:30:00.000Z"
    }
  }
  ```
</ResponseExample>

<Note>
  Credentials are validated against the Scaleway API before being stored. If the secret key is invalid or the namespace does not exist, the request will fail with a `400 Bad Request` error.
</Note>
