This comprehensive guide will help you integrate Pasture Portal into your website. Learn how to embed our partner interface and provide data access to your users.
Embedding Pasture Portal on your website is simple. You'll need your unique partner token, which is provided in your partner dashboard.
Copy and paste this code into your HTML where you want the Pasture Portal interface to appear:
<iframe
src="https://pastureportal.com.au/partner/?token=YOUR_API_KEY"
width="100%"
height="600"
frameborder="0"
style="border:0; overflow:auto;"
></iframe>
⚠️ Important: Replace YOUR_API_KEY with your actual partner token from the
dashboard.
You can customize the iframe behavior using these parameters:
| Parameter | Type | Description | Example |
|---|---|---|---|
width |
string | Set the width of the iframe | "100%" or "800px" |
height |
string | Set the height of the iframe | "600" or "800" |
frameborder |
string | Show or hide the border | "0" (no border) |
| Issue | Solution |
|---|---|
| Iframe not displaying | Verify your API key is correct and active in the dashboard |
| Content appears cut off | Increase the height parameter or use responsive CSS |
| Access denied error | Check that your partner account has proper permissions enabled |