# Authentication

Set the following header in each HTTP request:

<table><thead><tr><th width="319">HTTP Header</th><th>Description</th></tr></thead><tbody><tr><td>sprinkle-org-id</td><td>Organisation Id</td></tr><tr><td>sprinkle-api-key</td><td>API key id</td></tr><tr><td>sprinkle-api-secret</td><td>API key secret</td></tr></tbody></table>

### Getting Organisation Id

Get the Organisation Id from the sprinkle application url. The value of "o" parameter

![](https://4030959749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkMAr0ShUM4VdbvEgyP7%2Fuploads%2Fe9tx7dO2ecgNXTpTuUU3%2Forg-id.png?alt=media\&token=a071e2a1-0b11-4f98-a1ce-48d424307d83)

### Generating API Key

You can create your own API keys. At max each user can create 2 keys. To create user keys - click on **Account**.

<div align="left"><img src="https://4030959749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkMAr0ShUM4VdbvEgyP7%2Fuploads%2F5crY3At5bJatLLtovnfL%2Fapi-key-1.png?alt=media&#x26;token=0be7d6c5-f235-436b-bdbe-904fe60506e2" alt=""></div>

On the Profile page click on the **User Keys** tab and **Generate** new key. Copy the API Key Id and Secret

![](https://4030959749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkMAr0ShUM4VdbvEgyP7%2Fuploads%2F5AjJrdkpsDZG0zZuKxfW%2Fapi-key-2.png?alt=media\&token=bfad5bdc-fa3a-4088-9819-cda80cb99c97)
