Prerequisites
- A Givebutter account (sign up here)
- Basic knowledge of making HTTP requests
- An HTTP client or programming language (cURL, JavaScript, Python, etc.)
Step 1: Get Your API Key
1
Log into Dashboard
Sign in to your Givebutter Dashboard
2
Navigate to API Settings
Go to Settings → Integrations → API Keys
3
Create API Key
Click Create New API Key and give it a descriptive name (e.g., “My First Integration”)
4
Copy Your Key
Copy your API key immediately - you won’t be able to see it again!
Step 2: Make Your First Request
Let’s fetch a list of your campaigns. Choose your preferred language:Step 3: Understand the Response
You’ll receive a JSON response with your campaigns:Understanding the Response
Understanding the Response
data: Array of campaign objects -links: URLs for pagination (first, last, prev, next pages) -meta: Pagination metadata (current page, total items, etc.)
Step 4: Handle Errors
Always check for errors in your requests:Common Errors
| Error Code | What It Means | How to Fix |
|---|---|---|
| 401 | Invalid API key | Check your API key is correct and includes Bearer prefix |
| 403 | Permission denied | Verify your API key has access to this resource |
| 404 | Resource not found | Check the URL and resource ID are correct |
| 429 | Rate limit exceeded | Wait before making more requests, see Rate Limits |
What’s Next?
Now that you’ve made your first request, explore these resources:API Overview
Learn about all available endpoints and capabilities
Authentication
Deep dive into API authentication and security
Pagination
Work with paginated results efficiently
Rate Limits
Understand rate limits and best practices
Errors
Handle errors gracefully in your integration
Campaigns
Explore campaign endpoints
Transactions
Access donation and transaction data
Contacts
Manage donor and supporter information
Test vs Production
Start with a test API key (prefix:
test_) to safely develop your integration without
affecting production data. When ready, create a live API key (prefix: live_) for production
use.Need Help?
- API Status: status.givebutter.com
- Support: [email protected]
- Questions? Check the full API documentation