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

# Create a credential



## OpenAPI

````yaml https://api.arklow.io/swagger/ui/json put /v1/orgs/{org_id}/credentials/
openapi: 3.1.0
info:
  title: Arklow
  description: Arklow's API
  version: 0.1.0
servers:
  - url: https://api.arklow.io
    description: Production
  - url: http://localhost:3123
    description: Local development
security:
  - apiKey: []
tags:
  - name: actions
  - name: api_keys
  - name: billing
  - name: config
  - name: credentials
  - name: destinations
  - name: invites
  - name: members
  - name: metrics
  - name: notifications
  - name: orgs
  - name: rules
  - name: sources
  - name: users
  - name: ingress
externalDocs:
  url: https://api.arklow.io/swagger/ui
paths:
  /v1/orgs/{org_id}/credentials/:
    put:
      tags:
        - credentials
      summary: Create a credential
      operationId: put_v1_orgs_by_org_id_credentials
      parameters:
        - schema:
            type: string
            pattern: ^[0-9]+$
          in: path
          name: org_id
          required: true
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - type: object
                  required:
                    - type
                  properties:
                    type:
                      type: string
                      enum:
                        - http_auth_headers
                    provider:
                      type: string
                      enum:
                        - http
                    label:
                      type: string
                    metadata:
                      type: object
                      additionalProperties: {}
                    secret:
                      anyOf:
                        - type: object
                          additionalProperties:
                            type: string
                        - type: object
                          additionalProperties:
                            anyOf:
                              - type: string
                              - type: number
                              - type: boolean
                              - type: 'null'
                        - type: string
                - type: object
                  required:
                    - type
                  properties:
                    type:
                      type: string
                      enum:
                        - gcp_sa
                    provider:
                      type: string
                      enum:
                        - gcp
                    label:
                      type: string
                    metadata:
                      type: object
                      additionalProperties: {}
                    secret:
                      type: object
                      additionalProperties:
                        anyOf:
                          - type: string
                          - type: number
                          - type: boolean
                          - type: 'null'
                - type: object
                  required:
                    - type
                  properties:
                    type:
                      type: string
                      enum:
                        - aws
                    provider:
                      type: string
                      enum:
                        - aws
                    label:
                      type: string
                    metadata:
                      type: object
                      additionalProperties: {}
                    secret:
                      type: object
                      required:
                        - AWS_ACCESS_KEY_ID
                        - AWS_SECRET_ACCESS_KEY
                      properties:
                        AWS_ACCESS_KEY_ID:
                          type: string
                        AWS_SECRET_ACCESS_KEY:
                          type: string
                - type: object
                  required:
                    - type
                  properties:
                    type:
                      type: string
                      enum:
                        - metric
                    provider:
                      type: string
                      enum:
                        - datadog
                    label:
                      type: string
                    metadata:
                      type: object
                      additionalProperties: {}
                    secret:
                      type: object
                      required:
                        - api_key
                        - app_key
                      properties:
                        api_key:
                          type: string
                        app_key:
                          type: string
                - type: object
                  required:
                    - type
                    - provider
                  properties:
                    type:
                      type: string
                      pattern: ^(?!(http_auth_headers|gcp_sa|aws|metric)$).+$
                    provider:
                      type: string
                    label:
                      type: string
                    metadata:
                      type: object
                      additionalProperties: {}
                    secret:
                      anyOf:
                        - type: object
                          required:
                            - AWS_ACCESS_KEY_ID
                            - AWS_SECRET_ACCESS_KEY
                          properties:
                            AWS_ACCESS_KEY_ID:
                              type: string
                            AWS_SECRET_ACCESS_KEY:
                              type: string
                        - type: object
                          additionalProperties:
                            type: string
                        - type: object
                          additionalProperties:
                            anyOf:
                              - type: string
                              - type: number
                              - type: boolean
                              - type: 'null'
                        - type: object
                          required:
                            - api_key
                            - app_key
                          properties:
                            api_key:
                              type: string
                            app_key:
                              type: string
                        - type: object
                          additionalProperties:
                            anyOf:
                              - type: string
                              - type: number
                              - type: boolean
                              - type: 'null'
                        - type: string
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - errors
                properties:
                  data:
                    anyOf:
                      - type: object
                        required:
                          - id
                          - org_id
                          - type
                          - provider
                          - updated_at
                        properties:
                          id:
                            type: string
                          org_id:
                            type: string
                          type:
                            type: string
                          provider:
                            type: string
                          label:
                            type: string
                          version:
                            type: integer
                          metadata:
                            anyOf:
                              - type: object
                                additionalProperties: {}
                              - type: 'null'
                          expires_at:
                            anyOf:
                              - type: 'null'
                              - type: string
                                format: date-time
                          updated_at:
                            type: string
                            format: date-time
                          deleted_at:
                            anyOf:
                              - type: 'null'
                              - type: string
                                format: date-time
                      - type: 'null'
                  errors:
                    anyOf:
                      - type: array
                        items:
                          type: object
                          required:
                            - code
                            - message
                          properties:
                            code:
                              type: string
                            message:
                              type: string
                      - type: 'null'
components:
  securitySchemes:
    apiKey:
      type: apiKey
      name: x-arklow-auth
      in: header

````