Zapiet Docs
Last Mile API
Last Mile API
  • Last Mile API
  • Configuring a test store
  • App setup overview
  • General endpoints
  • Authentication
  • Creating settings
  • Creating packages
  • Rate estimate
  • Creating a delivery
  • Delivery status
  • Cancel delivery
  • Creating an integration
  • Writing app listing
  • Order status
  • Tracking URLs
  • Allow variables list
  • Phone number formatting
Powered by GitBook
On this page
  • API key
  • Bearer token
  • Basic flow
  • OAuth

Authentication

PreviousGeneral endpointsNextCreating settings

Last updated 8 months ago

We support four kinds of authentication:

  • API key

  • Bearer token (no refresh token)

  • Basic flow

  • OAuth

Merchants enter their authentication key when they first activate your integration.


API key

You can have the merchant’s API key as a header or a query parameter. You can configure the field name, and add multiple headers if you need them.

If you need merchants to enter an additional authentication parameter like their username and password, you can add those by and using the variable as the value.


Bearer token

We will automatically attach an Authorization header to your requests. We will add the merchant’s key after “Bearer”. We can only support bearer tokens that don’t expire, and we don’t support refresh tokens yet.

Authorization: Bearer YW5keTpjYXJnaW5keTpjYXJnaWxs

Basic flow

We will automatically attach an Authorization header to your requests. We will add the merchant’s key after “Basic”.

Authorization: Basic YW5keTpjYXJnaWxs

OAuth

When OAuth is selected, you need to specify the Authentication end point, the grant type and the scope that your API expects to receive.

When OAuth is configured, customers will be asked to enter their Client ID and Client Secret to activate the integration.

creating settings