# Enrichment
Source: https://docs.goldilocksai.app/api-reference/enrichment
POST /enrichment/profiles
Enrich existing profiles with additional contact information or professional achievements. This endpoint adds valuable data to profiles you've found through searches, such as email addresses, phone numbers, awards, publications, memberships, or patents. You can enrich up to 50 profiles per request, and each request focuses on one enrichment type. The endpoint validates profile existence before processing and returns warnings if enrichment data is unavailable for specific profiles.
# Introduction
Source: https://docs.goldilocksai.app/api-reference/introduction
Get started with the Goldilocks AI Developer API
## Welcome
The Goldilocks AI Developer API enables you to search for professional profiles using natural language queries and enrich them with contact information and professional achievements.
Get started with authentication and your first API call
## What You Can Do
Execute searches using plain English queries to find professional profiles
Add contact information and professional achievements to profiles
Stream job progress updates via Server-Sent Events
View the complete OpenAPI specification
## Base URL
All API requests should be made to:
```
https://api.goldilocksai.app
```
## Next Steps
1. **[Get your API key](/api-reference/quickstart)** - Set up authentication
2. **[Execute a search](/api-reference/searches)** - Find professional profiles
3. **[Enrich profiles](/api-reference/enrichment)** - Add contact information
4. **[Monitor jobs](/api-reference/jobs)** - Track long-running operations
# Jobs
Source: https://docs.goldilocksai.app/api-reference/jobs
GET /jobs/{job_id}/stream
Stream real-time progress updates for asynchronous operations like searches and profile fetching using Server-Sent Events (SSE). This endpoint provides live updates on job status, current processing stage, and completion status. You'll receive events as the job progresses through different stages, with a final event when the job completes or encounters an error. The stream automatically closes after the final event.
**Important: Retrieving profiles during search**
During the "Aggregate Search Results" stage, you'll receive events containing `search_id` in the metadata whenever a new batch of profiles is matched. Each time you receive this event, you can call `GET /searches/{search_id}/profiles` to retrieve the latest profiles found so far. This allows you to display results progressively to users rather than waiting for the entire search to complete.
# Quickstart
Source: https://docs.goldilocksai.app/api-reference/quickstart
Get started with the Goldilocks AI Developer API
## Authentication
All API endpoints require API key authentication using the `X-API-Key` header.
### Getting Your API Key
1. Log in to the [Goldilocks web application](https://www.goldilocksai.co.uk)
2. Navigate to the API Keys section
3. Create a new API key with the required scopes
4. Copy the key (shown only once)
Never commit API keys to version control or share them publicly. Keep your API keys secure.
### API Key Format
API keys are alphanumeric strings, typically 40+ characters long.
**Example**: `0FPJsP2SzuKQy8JDel2UadDtWi1algmw1vIkteOC8sc`
### Using Your API Key
Include your API key in the `X-API-Key` header for all requests:
```bash cURL theme={null}
curl -X POST https://api.goldilocksai.app/searches/query \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "Find 20 software engineers in San Francisco"}'
```
```python Python theme={null}
import requests
headers = {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
response = requests.post(
"https://api.goldilocksai.app/searches/query",
headers=headers,
json={"query": "Find 20 software engineers in San Francisco"}
)
```
```javascript JavaScript theme={null}
const response = await fetch('https://api.goldilocksai.app/searches/query', {
method: 'POST',
headers: {
'X-API-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
query: 'Find 20 software engineers in San Francisco'
})
});
```
### API Key Scopes
API keys can have the following scopes:
* `searches:create` - Execute new searches
* `searches:read` - Retrieve search results
* `enrichment:read` - Enrich profiles with additional data
* `jobs:read` - Stream job progress via SSE
## Rate Limiting
Rate limits are applied per API key:
* **POST /searches/query**: 10 requests/minute, maximum 3 concurrent requests
* **POST /searches//more-profiles**: 10 requests/minute, maximum 3 concurrent requests
* **POST /enrichment/profiles**: 20 requests/minute
* **GET /searches//profiles**: No rate limit
* **GET /jobs//stream**: No rate limit
Rate limit information is included in response headers:
* `X-RateLimit-Limit` - Maximum requests allowed
* `X-RateLimit-Remaining` - Requests remaining in current window
* `X-RateLimit-Reset` - Unix timestamp when rate limit resets
## Your First Request
1. **Get your API key** (see above)
2. **Make a search request** using the [Searches endpoint](/api-reference/searches)
3. **Stream job progress** using the [Jobs endpoint](/api-reference/jobs) to track your search
4. **Retrieve results** once the job completes
5. **Enrich profiles** with contact information using the [Enrichment endpoint](/api-reference/enrichment)
# More Profiles
Source: https://docs.goldilocksai.app/api-reference/searches/more-profiles
POST /searches/{search_id}/more-profiles
Fetch additional profiles for an existing search when you need more results. This endpoint uses the same search context and criteria as your original search to find additional relevant profiles. The process runs asynchronously, and once complete, the new profiles are automatically merged with your existing results. You can request between 1-200 additional profiles per call.
# Retrieve Profiles
Source: https://docs.goldilocksai.app/api-reference/searches/profiles
GET /searches/{search_id}/profiles
Retrieve all profiles found by a completed search, including relevancy scores and any enrichment data you've added. Profiles are returned in relevancy order (highest to lowest), making it easy to identify the best matches. The response includes search statistics showing how many profiles were found, scanned, and matched your criteria.
# Query
Source: https://docs.goldilocksai.app/api-reference/searches/query
POST /searches/query
Execute a natural language search query to find professional profiles that match your criteria. This endpoint processes your query using AI to understand requirements, searches through professional databases, and returns relevant profiles with relevancy scores. The search runs asynchronously, so you'll receive a `job_id` immediately to track progress via Server-Sent Events (SSE).