Skip to content

Quick Start Guide

Welcome to AgencyHub API! This guide will help you get up and running with our API in just a few minutes.

Prerequisites

Before you begin, make sure you have:

  1. An AgencyHub account
  2. Your API access key and secret key
  3. A tool for making HTTP requests (like cURL, Postman, or a programming language of your choice)

Step 1: Authentication

To use the AgencyHub API, you need to include your API keys in the header of each request. See our Authentication Guide for more details.

javascript
const headers = {
  "x-access-key": "your_access_key_here",
  "x-secret-key": "your_secret_key_here",
};

Step 2: Make Your First API Call

Let's start by retrieving a list of current listings:

javascript
fetch("https://agencyhubapi.stepps.net/api/v1/listings?status=current", {
  method: "GET",
  headers: headers,
})
  .then((response) => response.json())
  .then((data) => console.log(data))
  .catch((error) => console.error("Error:", error));

Step 3: Explore the API

Now that you've made your first API call, you can explore other endpoints:

  • Get details of a specific listing: GET /api/v1/listings/{id}
  • List agents: GET /api/v1/agents
  • Retrieve account information: GET /api/v1/accounts

Next Steps

  1. Explore our API Reference for detailed information on all available endpoints.
  2. Check out our Listings API Guide for more advanced querying options.

Need Help?

If you encounter any issues or have questions, please don't hesitate to contact our support team.