PitchGhost Contacts API
The Contacts API from PitchGhost — 2 operation(s) for contacts.
The Contacts API from PitchGhost — 2 operation(s) for contacts.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/pitchghost-com:pitchghost-com-contacts-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: PitchGhost Contacts API
version: 1.0.0
contact:
name: PitchGhost Support
email: support@pitchghost.com
url: https://pitchghost.com/contact
description: 'The PitchGhost API provides programmatic access to our lead generation and social media automation platform.
## Authentication
All API endpoints require authentication using a combined Company ID and API key. The authentication value is formed by combining your Company ID with your API token, separated by a colon:
```
{companyId}:{apiKey}
```
For example:
```
e5903eb5-006a-4d3f-a34d-71b9d8929f2e:7baa8145694a4cb8b68a7fc178c27d80
```
### Getting Your Company ID
You can find your Company ID in the PitchGhost app URL when logged in:
```
https://app.pitchghost.com/org/{YOUR-COMPANY-ID}/dashboard
```
For example, if your dashboard URL is:
```
https://app.pitchghost.com/org/a971dk12-05a5-46e3-akq6-cd11nbac3594/dashboard
```
Then your Company ID is: `a971dk12-05a5-46e3-akq6-cd11nbac3594`
### Authentication Methods
You can provide your combined authentication string in one of two ways:
1. **X-API-Key Header**:
```
X-API-Key: e5903eb5-006a-4d3f-a34d-71b9d8929f2e:7baa8145694a4cb8b68a7fc178c27d80
```
2. **Bearer Token**:
```
Authorization: Bearer e5903eb5-006a-4d3f-a34d-71b9d8929f2e:7baa8145694a4cb8b68a7fc178c27d80
```
## Rate Limits
The API implements rate limiting to ensure fair usage and system stability. All authenticated endpoints are subject to rate limits.
### Global Rate Limit (Basic API)
All API requests are subject to a global rate limit of **200 requests per 10 minutes** per company. This limit applies across all API keys for your company.
- **Limit**: 200 requests per 10-minute window
- **Scope**: Per company (all API keys combined)
- **Window**: Rolling 10-minute window
### Rate Limit Headers
Every API response includes rate limit information in the following headers:
- `X-RateLimit-Limit`: Maximum requests allowed in the current window
- `X-RateLimit-Remaining`: Number of requests remaining in the current window
- `X-RateLimit-Reset`: Unix timestamp (in milliseconds) when the window resets
- `X-RateLimit-Type`: Type of rate limit applied (''global'', ''action'', or ''none'')
When rate limited, you''ll receive:
- `429 Too Many Requests` status code
- `Retry-After` header indicating seconds to wait before retrying
## Response Format
All responses are returned in JSON format. Successful responses will have appropriate HTTP status codes (2xx range).
## Error Handling
Errors are returned with appropriate HTTP status codes and a JSON body containing a `message` field describing the error.
Common error codes:
- `401`: Authentication required or invalid API key
- `403`: Insufficient permissions for the requested resource
- `429`: Rate limit exceeded (see Rate Limits section)
- `500`: Internal server error'
servers:
- url: https://api.pitchghost.com
description: Production API
tags:
- name: Contacts
paths:
/pitchghost/contacts/search:
post:
summary: Search
description: Search and filter contacts with simple filtering options. Supports text search across names and company, blocked status filtering, and pagination.
tags:
- Contacts
security:
- ApiKeyAuth: []
- BearerAuth: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SearchContactsRequest'
responses:
'200':
description: Successfully retrieved contacts
content:
application/json:
schema:
$ref: '#/components/schemas/SearchContactsResponse'
'400':
description: Invalid request parameters
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication required or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Insufficient permissions
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: postPitchghostContactsSearch
x-operation-id-source: derived
/pitchghost/contacts/update/:id:
patch:
summary: Update
description: Update a contact. Only allows updating first_name, last_name, notes, profile_image, and is_blocked.
tags:
- Contacts
security:
- ApiKeyAuth: []
- BearerAuth: []
parameters:
- schema:
type: string
format: uuid
description: UUID identifier
example: 123e4567-e89b-12d3-a456-426614174000
required: true
description: UUID identifier
name: id
in: path
requestBody:
content:
application/json:
schema:
type: object
properties:
first_name:
type:
- string
- 'null'
minLength: 1
maxLength: 100
last_name:
type:
- string
- 'null'
minLength: 1
maxLength: 100
notes:
type:
- string
- 'null'
minLength: 1
maxLength: 2000
profile_image:
type:
- string
- 'null'
format: uri
is_blocked:
type: boolean
examples:
- first_name: Dana
last_name: Whitfield
notes: Head of Sales at Acme. Evaluating CRMs this quarter.
is_blocked: false
responses:
'200':
description: Successfully updated contact
content:
application/json:
schema:
type: object
properties:
contact:
type: object
properties:
id:
type: string
format: uuid
description: Unique identifier for the contact
example: 123e4567-e89b-12d3-a456-426614174000
company_id:
type: string
format: uuid
description: Company that owns this contact
example: 123e4567-e89b-12d3-a456-426614174000
display_name:
type: string
description: Display name for the contact
example: John Doe
first_name:
type:
- string
- 'null'
description: First name of the contact
example: John
last_name:
type:
- string
- 'null'
description: Last name of the contact
example: Doe
company_name:
type:
- string
- 'null'
description: Company or organization name
example: Acme Corp
is_blocked:
type: boolean
description: Whether this contact is blocked
example: false
is_company:
type: boolean
description: Whether this represents a company profile
example: false
is_platform_name:
type: boolean
description: Whether this is a platform-generated name
example: false
discovered_source:
type: string
enum:
- manual
- twitter
- linkedIn
- reddit
- facebook
description: Platform where contact was discovered
example: twitter
profile_image:
type:
- string
- 'null'
description: URL to profile image
example: https://example.com/avatar.jpg
notes:
type:
- string
- 'null'
description: Private notes about this contact
example: Potential customer, interested in our API
created_at:
type: string
format: date-time
description: When the contact was first discovered
example: '2024-01-15T14:30:00Z'
updated_at:
type: string
format: date-time
description: When the contact was last modified
example: '2024-01-15T14:30:00Z'
required:
- id
- company_id
- display_name
- first_name
- last_name
- company_name
- is_blocked
- is_company
- is_platform_name
- discovered_source
- profile_image
- notes
- created_at
- updated_at
required:
- contact
'400':
description: Invalid request data
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication required or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Insufficient permissions or contact not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: patchPitchghostContactsUpdate:id
x-operation-id-source: derived
components:
schemas:
SearchContactsRequest:
type: object
properties:
filters:
type: object
properties:
searchText:
type: string
description: Search in contact names and company names
example: John Doe
status:
type: string
enum:
- blocked
- unblocked
- all
default: all
description: Filter by blocked status
example: unblocked
sources:
type: array
items:
type: string
enum:
- manual
- twitter
- linkedIn
- reddit
- facebook
hasExternalContacts:
type: boolean
isCompany:
type: boolean
isPlatformName:
type: boolean
dateRange:
type: object
properties:
start:
type: string
format: date-time
end:
type: string
format: date-time
default: {}
pagination:
type: object
properties:
page:
type: integer
minimum: 1
default: 1
description: Page number for pagination (1-based)
example: 1
limit:
type: integer
minimum: 1
maximum: 100
default: 50
description: Number of items per page (max 100)
example: 50
default: {}
additionalProperties: false
sort:
type: object
properties:
field:
type: string
enum:
- display_name
- created_at
- updated_at
- first_name
- last_name
default: created_at
description: Field to sort contacts by
example: created_at
direction:
type: string
enum:
- asc
- desc
default: desc
description: Sort direction
example: desc
default: {}
additionalProperties: false
examples:
- filters:
searchText: Dana
status: unblocked
isCompany: false
sort:
field: created_at
direction: desc
pagination:
page: 1
limit: 25
SearchContactsResponse:
type: object
properties:
contacts:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
description: Unique identifier for the contact
example: 123e4567-e89b-12d3-a456-426614174000
company_id:
type: string
format: uuid
description: Company that owns this contact
example: 123e4567-e89b-12d3-a456-426614174000
display_name:
type: string
description: Display name for the contact
example: John Doe
first_name:
type:
- string
- 'null'
description: First name of the contact
example: John
last_name:
type:
- string
- 'null'
description: Last name of the contact
example: Doe
company_name:
type:
- string
- 'null'
description: Company or organization name
example: Acme Corp
is_blocked:
type: boolean
description: Whether this contact is blocked
example: false
is_company:
type: boolean
description: Whether this represents a company profile
example: false
is_platform_name:
type: boolean
description: Whether this is a platform-generated name
example: false
discovered_source:
type: string
enum:
- manual
- twitter
- linkedIn
- reddit
- facebook
description: Platform where contact was discovered
example: twitter
profile_image:
type:
- string
- 'null'
description: URL to profile image
example: https://example.com/avatar.jpg
notes:
type:
- string
- 'null'
description: Private notes about this contact
example: Potential customer, interested in our API
created_at:
type: string
format: date-time
description: When the contact was first discovered
example: '2024-01-15T14:30:00Z'
updated_at:
type: string
format: date-time
description: When the contact was last modified
example: '2024-01-15T14:30:00Z'
required:
- id
- company_id
- display_name
- first_name
- last_name
- company_name
- is_blocked
- is_company
- is_platform_name
- discovered_source
- profile_image
- notes
- created_at
- updated_at
description: Array of contact records matching the search criteria
pagination:
type: object
properties:
page:
type: integer
description: Current page number
example: 1
limit:
type: integer
description: Items per page
example: 50
total:
type: integer
description: Total number of items across all pages
example: 150
total_pages:
type: integer
description: Total number of pages
example: 3
required:
- page
- limit
- total
- total_pages
description: Pagination metadata for the results
required:
- contacts
- pagination
ErrorResponse:
type: object
properties:
message:
type: string
examples:
- Ghost not found or does not belong to company
required:
- message
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: 'Combined Company ID and API key. Format: {companyId}:{apiKey}'
BearerAuth:
type: http
scheme: bearer
description: 'Combined Company ID and API key. Format: {companyId}:{apiKey}'