Skip to main content

Prerequisites

Before you begin, make sure you have:
  • A Happenstance account
  • Your API key (generated from Settings)

Make Your First Request

1. Submit a Search Request

Search for relevant people within your groups and connections:
Response:
You can also search within specific groups by including group_ids - get your group IDs from the /v1/groups endpoint.
Use @mentions in your query to filter results to a specific person’s connections. For example: "engineers @Jane Smith knows". Use the /v1/groups/{group_id} endpoint to look up member names.

2. Poll for Results

Search runs asynchronously. Poll the GET endpoint until status is COMPLETED:
Response (in progress):
Response (completed):
Poll every 5-10 seconds. Search typically completes within 30-60 seconds.

3. Find More Results (Optional)

If has_more is true, you can request additional results:

Next Steps

The Basics

Learn about the API

Support

Contact our support team