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

# Authorization

> How to authenticate your requests to Periskope

Periskope APIs require two headers to be passed to authenticate your requests - a Bearer `Authorization` header with your apiKey and an `x-phone` header with your phone number.

## API Key 🔑

To authenticate you need to add an Authorization header with the contents of the header being `Bearer <token>` where `<token>` is your API Key.

<Steps>
  <Step title="Login to your account">
    To generate an API key for your zap, you must have a periskope account. If
    you don’t have one, you can sign up for a free trial
    [here](https://console.periskope.app).
  </Step>

  <Step title="Generate API Key">
    Navigate to the API section and click on 'Generate API Key' or click to
    visit [here](https://console.periskope.app/settings/integrations/api). API key can only
    be revealed once, so please keep this API key safe and at a secure place.

    <Frame caption="API settings">
      <img className="block border rounded-xl shadow" src="https://mintcdn.com/bharatkumarramesh/4Au0rGi6EzWXLRIt/integrations/zapier/step-1.png?fit=max&auto=format&n=4Au0rGi6EzWXLRIt&q=85&s=e668724fceb9ce301199dc7ddf104060" alt="Step 1" width="2330" height="1464" data-path="integrations/zapier/step-1.png" />
    </Frame>
  </Step>
</Steps>

## x-phone header

The `x-phone` header is used to direct the request to the correct phone.

e.g. if you want to send a message to a number, the x-phone header specifies which phone must be used to send the message

The x-phone header must be a valid phone number with country code and without any special characters e.g. `919876512340`
