TyrAds Docs
Official WebsiteSDK Integration
  • Welcome
  • Advertiser API
    • Overview
    • Authentication
    • API Resources
      • Advertiser Report
  • Publishers Integrations
    • Overview
    • Publisher API
      • Authentication
      • API Resources
        • Active Campaigns
        • Support Ticket
          • Iframe Publisher Support Tickets
      • Rate Limiting
    • Postback Macros
Powered by GitBook
On this page
  1. Publishers Integrations
  2. Publisher API

Authentication

The Publisher API uses an API key and API secret to authenticate requests.

You can request your API key and secret from the TyrAds team. To authenticate a request, provide the both API key and API secret in the header of the request:

Header Name
Value

X-Api-Key

YOUR_API_KEY

X-Api-Secret

YOUR_API_SECRET

curl -H "X-Api-Key: YOUR_API_KEY" -H "X-Api-Secret: YOUR_API_SECRET" https://api.tyrads.com
import requests

# Create headers with the API key and secret
headers = {
    'X-Api-Key': 'YOUR_API_KEY',
    'X-Api-Secret': 'YOUR_API_SECRET',  # You can add other headers as needed
}
# Set API URL
url = 'https://api.tyrads.com/'

# Make the API request with the headers
response = requests.get(url, headers=headers)

Please be sure to keep your API key and secret secure! Do not share them in emails, chat messages, client-side code, or publicly accessible sites.

If you have accidentally shared an API key and secret publicly, please contact the TyrAds team to revoke it

PreviousPublisher APINextAPI Resources

Last updated 1 year ago