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

# Create Credential

> Store an encrypted platform credential for Relay executions.



## OpenAPI

````yaml https://api.selcor.ai/v1/openapi.json post /v1/relay/credentials
openapi: 3.1.0
info:
  title: Selcor Partner API
  version: 0.1.0
  description: API for managing workspaces, locations, voice agents, and relay executions.
servers:
  - url: https://api.selcor.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/relay/credentials:
    post:
      tags:
        - Relay Credentials
      summary: Create Credential
      description: Store an encrypted platform credential for Relay executions.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                label:
                  type: string
                  minLength: 1
                  maxLength: 255
                  example: Dentrix Main
                platform:
                  type: string
                  minLength: 1
                  maxLength: 100
                  example: dentrix
                login_url:
                  type: string
                  format: uri
                  example: https://app.dentrix.com/login
                username:
                  type: string
                  minLength: 1
                  maxLength: 255
                password:
                  type: string
                  minLength: 1
                totp_secret:
                  type: string
              required:
                - label
                - platform
                - login_url
                - username
                - password
      responses:
        '201':
          description: Credential created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/CredentialSummary'
                  request_id:
                    type: string
                required:
                  - data
                  - request_id
      security:
        - bearerAuth: []
components:
  schemas:
    CredentialSummary:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        platform:
          type: string
        login_url:
          type: string
        username:
          type: string
        verified:
          type: boolean
        created_at:
          type: string
      required:
        - id
        - label
        - platform
        - login_url
        - username
        - verified
        - created_at
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'API key in format: sk_live_...'

````