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

# Create a Scaleway credential

> Bearer PAT authentication; RBAC permission `credentials.write`. The secret is stored in Vault and connection-tested without echoing key material.



## OpenAPI

````yaml https://platform.ankra.app/openapi.json post /api/v1/credentials/scaleway
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /api/v1/credentials/scaleway:
    post:
      tags:
        - Scaleway / Kapsule
      summary: Create a Scaleway credential
      description: >-
        Bearer PAT authentication; RBAC permission `credentials.write`. The
        secret is stored in Vault and connection-tested without echoing key
        material.
      operationId: create_scaleway_credential_pat
      parameters:
        - description: PAT organisation override.
          in: header
          name: x-ankra-organisation-id
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScalewayCredentialCreateRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CredentialCreateResult'
          description: Successful response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: Invalid request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: Unauthenticated
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: Permission or CSRF check failed
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: Resource not found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Request validation failed
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: Provider or internal failure
      security:
        - BearerAuth: []
components:
  schemas:
    ScalewayCredentialCreateRequest:
      example:
        access_key: SCWXXXXXXXXXXXXXXXXX
        name: scaleway-production
        project_id: 11111111-2222-4333-8444-555555555555
        secret_key: <secret>
      properties:
        access_key:
          type: string
          writeOnly: true
        name:
          type: string
        project_id:
          type: string
        secret_key:
          type: string
          writeOnly: true
      required:
        - name
        - access_key
        - secret_key
        - project_id
      type: object
    CredentialCreateResult:
      example:
        errors: []
        success: true
      properties:
        errors:
          items:
            additionalProperties: true
            properties: {}
            type: object
          type: array
        success:
          type: boolean
      required:
        - success
        - errors
      type: object
    ContractDetailError:
      example:
        detail: Cluster not found
      properties:
        detail:
          oneOf:
            - type: string
            - additionalProperties: true
              properties: {}
              type: object
      required:
        - detail
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: PAT
      scheme: bearer
      type: http

````