DocumentationDocumentation
Talk2Sync Documentation
User Documentation
Connector APIs
  • English
  • Español
Talk2Sync Documentation
User Documentation
Connector APIs
  • English
  • Español
  • User Guide Portal & API Documentation
  • User-documentation

    • User Documentation
    • Guide

      • User Guide: Introduction
      • Core Concepts
    • Talk2sync

      • Connection Buttons
      • Color Coding System
      • Issues and Alerts
      • Command Filters
      • Deleted Information Still Appears: How to Remove It
      • Deletions
    • Conexiones

      • Connection Settings
    • Fields

      • Time Based Sync
      • Data Governance
      • Special and Extra Fields
    • Productos

      • Product Fields
      • Equivalences
      • Product Search
      • Link / Unlink Products
    • Ventas

      • Fields
      • Equivalences
      • Sales Search
      • No SKU (Missing SKU)
    • Reports

      • Product Export
      • Sales Report
    • Faq

      • Amazon

        • Amazon Barcode Requirements
        • Amazon Catalog Discrepancies and ASIN Mismatches
        • Amazon Manufacturer Requirements
        • New ASIN Creation Errors and Invalid Attribute Values
        • Talk2sync, SKUs, and Product Identifiers
        • Amazon Variation Templates
      • Mercadolibre

        • Mercado Libre Official Stores
        • Mercado Libre Locations and Geographic Attributes
        • Mercado Libre Pick-up in Store
        • Mercado Libre Extra Attributes
        • Mercado Libre Image Processing and Synchronization
        • Mercado Libre Seller Unable to List Error
      • Linio

        • Linio Brand Not Registered Error
        • Linio Physical Dimensions and Weight Requirements
  • Connector APIs

    • Connector APIs
    • Quick-start

      • Introduction & Requirements
      • Add Connection
      • Configure Connection
      • Generate Keys
      • Test Your Integration
    • Webhooks

      • Webhooks API
      • Catalog

        • Webhooks: List Products
        • Webhooks: List Product by ID
        • Webhooks: Add/Update Product
      • Sales

        • Webhooks: List Orders
        • List Order by ID
        • Add/Update Order
    • Reverse-connections

      • Reverse Connections
      • Implementation-states

        • Implementation
        • Query Implementation: Products and Orders
        • Store Implementation: Products and Orders
        • Sleep and Timeouts
      • Protocol

        • Protocol
        • Overview
        • Product Upload
        • Order Upload
        • Product Download
        • Order Download
      • Rest-calls

        • REST Calls
        • Fetching-changes

          • Fetching Changes REST Calls
          • Ask if Fetching
          • Catalog

            • Push Products Page
            • Set Finish Product Pushes
          • Sales

            • Push Orders Page
            • Set Finish Order Pushes
            • Set Finish All Pushes
        • Pulling-changes

          • Pulling Changes REST Calls
          • Ask if Pulling
          • Catalog

            • Get Next Product to Pull
            • Pull Products Page
            • Notify Product Storage Success
            • Notify Product Storage Failure
            • Set Finish Product Download
          • Sales

            • Get Next Order to Pull
            • Pull Orders Page
            • Notify Order Storage Success
            • Notify Order Storage Failure
            • Set Finish Order Download
            • Transact Finish Pull

Generate Keys

Step 3 - Generate Keys

In this step, you will generate the security key that Talk2sync will use to authenticate requests to your endpoints. This key ensures that only Talk2sync can access your API.

Generate Your Security Key

Procedure

  1. In the Talk2sync connection configuration interface, locate the "Generate Key" button
  2. Click the "Generate Key" button
  3. Talk2sync will create a unique security key for your connection
  4. Copy and save the generated key in a secure location (you will need it for the next step)

Important: This key will only be displayed once. If you lose it, you will need to generate a new one. Store it securely.

How the Key Works

The security key serves as a bearer token that Talk2sync includes with every request to your endpoints. Your application must validate this key to ensure the request is legitimate.

Implementing Key Validation

Your endpoints must:

  1. Accept the key in the request header
  2. Validate that the key matches the one provided by Talk2sync
  3. Reject any requests with missing or invalid keys

Header Format

Talk2sync will send the security key in the following HTTP header:

Authorization: Bearer {YOUR_GENERATED_KEY}

Or as a custom header (depending on your configuration):

X-Talk2sync-Key: {YOUR_GENERATED_KEY}

Example Implementation

Request from Talk2sync:

GET https://www.example.com/api/products
Authorization: Bearer abc123xyz789...

Your endpoint should:

  1. Read the Authorization header
  2. Extract the key value after "Bearer "
  3. Compare it with the stored key
  4. If valid, process the request
  5. If invalid, return a 401 Unauthorized response

Validation Response

Your endpoints must include the security key in every response back to Talk2sync:

Response Header:

Authorization: Bearer {YOUR_GENERATED_KEY}

This confirms to Talk2sync that the response is legitimate and comes from your authorized server.

Key Management

  • Keep your key secure: Do not share it or commit it to version control
  • Rotate keys periodically: Generate new keys as part of your security maintenance
  • Use environment variables: Store the key in environment variables, not hardcoded in your application
  • Monitor access: Track which requests are made using your key

Example Code (Node.js/Express)

app.use((req, res, next) => {
  const authHeader = req.headers.authorization;
  const token = authHeader?.split(' ')[1]; // Extract token after "Bearer "
  
  const expectedKey = process.env.TALK2SYNC_KEY;
  
  if (token === expectedKey) {
    // Set the key in response headers
    res.setHeader('Authorization', `Bearer ${expectedKey}`);
    next();
  } else {
    res.status(401).json({ error: 'Unauthorized' });
  }
});

Next Steps

Once you have generated your key and implemented validation in your endpoints, proceed to: Test Your Integration

Related Steps

  • Previous: Configure Connection
  • Next: Test Your Integration
Last Updated: 8/21/26, 12:13 PM
Prev
Configure Connection
Next
Test Your Integration