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

# Import From Provider

> Write a provider's variables into this environment.

New keys are created at version 1. Existing keys are left alone under
'skip'; under 'overwrite' they gain a new version, so the value that was
here stays readable through the version history.



## OpenAPI

````yaml /openapi.json post /integrations/{workspace_id}/{team_id}/{project_id}/{environment_id}/
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /integrations/{workspace_id}/{team_id}/{project_id}/{environment_id}/:
    post:
      tags:
        - SECRET IMPORT
      summary: Import From Provider
      description: |-
        Write a provider's variables into this environment.

        New keys are created at version 1. Existing keys are left alone under
        'skip'; under 'overwrite' they gain a new version, so the value that was
        here stays readable through the version history.
      operationId: >-
        import_from_provider_integrations__workspace_id___team_id___project_id___environment_id___post
      parameters:
        - name: team_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Team Id
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Project Id
        - name: environment_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Environment Id
        - name: workspace_id
          in: path
          required: true
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Workspace Id
        - name: X-Workspace-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Workspace-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
        - APIKeyHeader: []
components:
  schemas:
    ImportRequest:
      properties:
        provider:
          type: string
          enum:
            - railway
            - vercel
            - render
          title: Provider
        token:
          type: string
          title: Token
          description: API token for the provider. Never stored.
        source:
          $ref: '#/components/schemas/ImportSource'
        reveal:
          type: boolean
          title: Reveal
          description: Return values in clear text instead of masked.
          default: false
        mode:
          type: string
          enum:
            - skip
            - overwrite
          title: Mode
          description: >-
            What to do with keys that already exist here: 'skip' leaves them
            alone, 'overwrite' records the provider's value as a new version.
          default: skip
      type: object
      required:
        - provider
        - token
        - source
      title: ImportRequest
    ImportResponse:
      properties:
        provider:
          type: string
          enum:
            - railway
            - vercel
            - render
          title: Provider
        environment_id:
          type: string
          format: uuid4
          title: Environment Id
        created:
          type: integer
          title: Created
        updated:
          type: integer
          title: Updated
        unchanged:
          type: integer
          title: Unchanged
        skipped:
          items:
            $ref: '#/components/schemas/SkippedItem'
          type: array
          title: Skipped
      type: object
      required:
        - provider
        - environment_id
        - created
        - updated
        - unchanged
        - skipped
      title: ImportResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ImportSource:
      properties:
        project_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Id
          description: Railway/Vercel project. For Render, the service id.
        environment_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Environment Id
          description: Railway environment id.
        service_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Service Id
          description: Railway or Render service id.
        target:
          anyOf:
            - type: string
            - type: 'null'
          title: Target
          description: 'Vercel target: production, preview or development.'
      type: object
      title: ImportSource
      description: Which set of variables to read, in the provider's own terms.
    SkippedItem:
      properties:
        key:
          type: string
          title: Key
        reason:
          type: string
          title: Reason
      type: object
      required:
        - key
        - reason
      title: SkippedItem
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /auth/login
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````