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

# Link Provider to Application

> Links an existing Email or SMS Provider to an Application.



## OpenAPI

````yaml /es/openapi/v3-current/AM-identity.yaml post /v1/applications/{id}/providers
openapi: 3.0.1
info:
  contact: {}
  description: This is a swagger documentation for the Identity API
  termsOfService: http://swagger.io/terms/
  title: Identity API
  version: 1.0.0
servers:
  - url: //localhost:4001/
security: []
paths:
  /v1/applications/{id}/providers:
    post:
      tags:
        - Application Providers
      summary: Link Provider to Application
      description: Links an existing Email or SMS Provider to an Application.
      parameters:
        - description: Application ID
          in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProviderItemInput'
        description: Provider Item Input
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProviderItemResponse'
          description: Created
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Conflict
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Internal Server Error
      security:
        - BearerAuth: []
components:
  schemas:
    ProviderItemInput:
      description: ProviderItemInput payload
      example:
        canUnlink: true
        canSignIn: true
        alertType: alertType
        providerId: providerId
        canSignUp: true
        rule: rule
        prompted: true
      properties:
        alertType:
          type: string
        canSignIn:
          type: boolean
        canSignUp:
          type: boolean
        canUnlink:
          type: boolean
        prompted:
          type: boolean
        providerId:
          type: string
        rule:
          type: string
      required:
        - providerId
      type: object
    ProviderItemResponse:
      description: ProviderItemResponse payload
      example:
        canUnlink: true
        canSignIn: true
        alertType: alertType
        providerId: providerId
        canSignUp: true
        rule: rule
        prompted: true
        category: category
        type: type
      properties:
        alertType:
          type: string
        canSignIn:
          type: boolean
        canSignUp:
          type: boolean
        canUnlink:
          type: boolean
        category:
          type: string
        prompted:
          type: boolean
        providerId:
          type: string
        rule:
          type: string
        type:
          type: string
      type: object
    pkg.HTTPError:
      properties:
        code:
          type: string
        entityType:
          type: string
        err:
          type: object
        message:
          type: string
        title:
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      description: 'Bearer authentication. Send Authorization: Bearer <token>.'
      in: header
      name: Authorization
      type: apiKey

````