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

# Drop badge file at SFTP path



## OpenAPI

````yaml /tango_common/integrations/guides/badge-inbound.yaml post /inbound/badge
openapi: 3.1.0
info:
  title: Tango Space Badge Inbound — File
  version: '0.4'
  description: |
    SFTP file-based inbound. Client drops a pipe-delimited file of badge
    (access-control) events to Tango's SFTP server; Tango picks up the file,
    upserts records by `person_id` (Employee ID), and moves the file to
    `Processed/`. Tango never deletes badge data.
  x-direction: inbound
  x-source: Client System
  x-destination: Tango
  x-transport: sftp
  x-file-format: pipe-delimited text (.txt)
  x-file-naming-convention: '{CLIENTCODE}_BADGE_MMDDYYYYHHMMSS.txt'
servers:
  - url: sftp://sftp.tangoanalytics.com
    description: Production SFTP
    x-environment: production
    x-path: /inbound/badge
  - url: sftp://sftpdev.tangoanalytics.com
    description: Test SFTP (SIT/UAT)
    x-environment: test
    x-path: /inbound/badge
security:
  - sftpUserPassword: []
tags:
  - name: Badge Inbound File
paths:
  /inbound/badge:
    post:
      tags:
        - Badge Inbound File
      summary: Drop badge file at SFTP path
      operationId: deliverBadgeInboundFile
      requestBody:
        required: true
        content:
          text/plain:
            schema:
              type: string
              format: binary
              x-record-schema:
                $ref: '#/components/schemas/BadgeInboundRow'
      responses:
        '200':
          description: File received and queued for processing.
components:
  securitySchemes:
    sftpUserPassword:
      type: http
      scheme: basic

````