👩‍💻
Transfers API Documentation
  • Transfers Checkout
  • Transfers Connect
    • Overview
    • Integration (SDK)
  • Connect API
    • GraphQL: Endpoints and Schema
    • Authentication
    • Customer Verification
    • Initiate Transfer Request
    • Get Transaction
    • Get Transactions
    • Fetch BVN
    • Fetch All Connections
    • Bank Statement
  • Webhooks
    • Webhook Confirmation
Powered by GitBook
On this page

Was this helpful?

  1. Connect API

Authentication

How to authenticate requests to the Transfers Connect API

PreviousGraphQL: Endpoints and SchemaNextCustomer Verification

Last updated 3 years ago

Was this helpful?

To authenticate API requests, your public and private keys should be passed as request headers. Here's a JavaScript example with :

const ApolloClient = require('apollo-boost').default;

const publicKey = process.env.MERCHANT_PUBLIC_KEY
const privateKey = process.env.MERCHANT_PRIVATE_KEY

const client = new ApolloClient({
    uri: process.env.TRANSFERS_CONNECT_API,
    fetch: fetch,
    headers: {
        authorization: 'Bearer ' + publicKey,
        'Private-Key': privateKey,
    }
})

Apollo Boost