# All operations

Up2Data's /v1 API is a usage-based B2B data API: real-time LinkedIn profile, company, post, and job enrichment, live people, company, job, and post search, Sales Navigator search, and asynchronous batch jobs, all through one `X-API-Key` header. Every /v1 capability except profile counts is also batchable as an operation item, not just profile, company, and post enrich. Every call answers a `{data, meta}` envelope on success or an `{error}` envelope on failure. Sync enrich, activity, and a `profile`, `company`, `post`, or Sales Navigator batch item bill both when the target is found and when it comes back not found, private, deleted, or unreachable (`422 unprocessable_target`); every other batch operation bills a `422` at its smallest unit once its queue settles, and any batch item that fails on our side is refunded. A call is only unbilled when it fails with `400`, `401`, `402`, `429`, `500`, or `504`. Every request that reaches LinkedIn is billed, empty results included. Job search bills per job returned (minimum 1); standard people, company, and post search bill per page of up to 25 results (minimum 1 page); Sales Navigator search bills 2 credits per result with a 50-credit minimum. The base URL is `https://api.up2data.ai/v1`. Sync endpoints answer directly, typically in 2 to 8 seconds; submit `POST /batch` for volume and read results by webhook (`batch.completed`) or by polling `GET /batch/{job_id}`.

## Base URL and authentication

```http
https://api.up2data.ai/v1
X-API-Key: YOUR_API_KEY
```

## Profiles

| Method | Path | Credits | Mode |
|---|---|---|---|
| POST | [`/profiles/enrich`](https://docs.up2data.ai/v1/api/profiles-enrich/) | 1 credit - 2 with any flag, 3 with with_company_type | Sync |
| POST | [`/profiles/activity`](https://docs.up2data.ai/v1/api/profiles-activity/) | 2 credits for a single kind; 1 + 1 per kind for several, posts and reposts counting as one (all = 4) | Sync |
| POST | [`/profiles/recommendations`](https://docs.up2data.ai/v1/api/profiles-recommendations/) | 1 credit per requested direction - direction both is 2, whether or not it lists anything | Sync |
| POST | [`/profiles/interests`](https://docs.up2data.ai/v1/api/profiles-interests/) | 1 credit per requested category - category all is 5, whether or not it lists anything | Sync |
| POST | [`/profiles/counts`](https://docs.up2data.ai/v1/api/profiles-counts/) | 1 credit | Sync |

## Companies

| Method | Path | Credits | Mode |
|---|---|---|---|
| POST | [`/companies/enrich`](https://docs.up2data.ai/v1/api/companies-enrich/) | 1 credit - 2 with company type | Sync |
| POST | [`/companies/jobs-count`](https://docs.up2data.ai/v1/api/companies-jobs-count/) | 1 credit | Sync |
| POST | [`/companies/posts`](https://docs.up2data.ai/v1/api/companies-posts/) | 1 credit per returned post | Sync |
| POST | [`/companies/headcount`](https://docs.up2data.ai/v1/api/companies-headcount/) | 1 credit | Sync |

## Jobs

| Method | Path | Credits | Mode |
|---|---|---|---|
| POST | [`/jobs/enrich`](https://docs.up2data.ai/v1/api/jobs-enrich/) | 1 credit - 2 with with_hiring_team | Sync |
| POST | [`/search/jobs`](https://docs.up2data.ai/v1/api/search-jobs/) | 1 credit per job returned - +1 per job with with_hiring_team | Sync |

## Posts

| Method | Path | Credits | Mode |
|---|---|---|---|
| POST | [`/posts/enrich`](https://docs.up2data.ai/v1/api/posts-enrich/) | 1 credit - +1 per flag | Sync |
| POST | [`/search/posts`](https://docs.up2data.ai/v1/api/search-posts/) | 1 credit per page (up to 25 posts) | Sync |
| POST | [`/posts/engagement/comments`](https://docs.up2data.ai/v1/api/posts-engagement-comments/) | 1 credit per page of up to 100 comments | Sync |
| POST | [`/posts/engagement/reactions`](https://docs.up2data.ai/v1/api/posts-engagement-reactions/) | 1 credit per page of up to 100 reactions | Sync |
| POST | [`/posts/engagement/reposts`](https://docs.up2data.ai/v1/api/posts-engagement-reposts/) | 1 credit per page of up to 100 reposts | Sync |

## Search

| Method | Path | Credits | Mode |
|---|---|---|---|
| POST | [`/search/people`](https://docs.up2data.ai/v1/api/search-people/) (BETA) | 2 credits per result, minimum 50 - billed as at least 25 results, empty searches included | Sync |
| POST | [`/search/people/sales-nav`](https://docs.up2data.ai/v1/api/search-people-sales-nav/) (BETA) | 2 credits per result, minimum 50 - billed as at least 25 results, empty searches included | Sync |
| POST | [`/search/people/standard`](https://docs.up2data.ai/v1/api/search-people-standard/) | 1 credit per page (up to 25 results) | Sync |
| POST | [`/search/companies`](https://docs.up2data.ai/v1/api/search-companies/) | 1 credit per page (up to 25 results) | Sync |
| POST | [`/search/companies/sales-nav`](https://docs.up2data.ai/v1/api/search-companies-sales-nav/) (BETA) | 2 credits per result, minimum 50 - billed as at least 25 results, empty searches included | Sync |
| POST | [`/search/companies/standard`](https://docs.up2data.ai/v1/api/search-companies-standard/) | 1 credit per page (up to 25 results) | Sync |

## Batch

| Method | Path | Credits | Mode |
|---|---|---|---|
| POST | [`/batch`](https://docs.up2data.ai/v1/api/batch-create/) | Billed at submission - profile, company, and post items: 1 credit each (more with the same flags as their sync endpoint), refunded only when they fail on our side. Every other operation reserves the worst case at submission and settles to what it actually billed once its queue finishes - see the operations table below | Async |
| GET | [`/batch/{job_id}`](https://docs.up2data.ai/v1/api/batch-get/) | Free | Sync |
| GET | [`/batch/{job_id}/results`](https://docs.up2data.ai/v1/api/batch-results/) | Free | Sync |

## Signals

| Method | Path | Credits | Mode |
|---|---|---|---|
| GET | [`/signals`](https://docs.up2data.ai/v1/api/signals-list/) | Free | Sync |
| POST | [`/signals`](https://docs.up2data.ai/v1/api/signals-create/) | Free - each run bills as a batch job at run time | Sync |
| GET | [`/signals/{signal_id}`](https://docs.up2data.ai/v1/api/signals-get/) | Free | Sync |
| PATCH | [`/signals/{signal_id}`](https://docs.up2data.ai/v1/api/signals-update/) | Free | Sync |
| DELETE | [`/signals/{signal_id}`](https://docs.up2data.ai/v1/api/signals-delete/) | Free | Sync |
| POST | [`/signals/{signal_id}/pause`](https://docs.up2data.ai/v1/api/signals-pause/) | Free | Sync |
| POST | [`/signals/{signal_id}/resume`](https://docs.up2data.ai/v1/api/signals-resume/) | Free | Sync |
| GET | [`/signals/{signal_id}/runs`](https://docs.up2data.ai/v1/api/signals-runs/) | Free | Sync |

## Account

| Method | Path | Credits | Mode |
|---|---|---|---|
| GET | [`/account`](https://docs.up2data.ai/v1/api/account-get/) | Free | Sync |
| POST | [`/account/webhook-secret/rotate`](https://docs.up2data.ai/v1/api/account-webhook-secret-rotate/) | Free | Sync |

## Schemas

- [Profile](https://docs.up2data.ai/v1/schemas/profile/)
- [Company](https://docs.up2data.ai/v1/schemas/company/)
- [Post](https://docs.up2data.ai/v1/schemas/post/)
- [LeadResult](https://docs.up2data.ai/v1/schemas/lead-result/)
- [AccountResult](https://docs.up2data.ai/v1/schemas/account-result/)
- [SearchPerson](https://docs.up2data.ai/v1/schemas/search-person/)
- [SearchCompany](https://docs.up2data.ai/v1/schemas/search-company/)
- [JobPosting](https://docs.up2data.ai/v1/schemas/job-posting/)
- [JobDetail](https://docs.up2data.ai/v1/schemas/job-detail/)
- [Recommendation](https://docs.up2data.ai/v1/schemas/recommendation/)
- [ProfileRecommendationsResult](https://docs.up2data.ai/v1/schemas/profile-recommendations-result/)
- [Interest](https://docs.up2data.ai/v1/schemas/interest/)
- [ProfileInterestsResult](https://docs.up2data.ai/v1/schemas/profile-interests-result/)
- [ProfileCountsResult](https://docs.up2data.ai/v1/schemas/profile-counts-result/)
- [CompanyJobsCountResult](https://docs.up2data.ai/v1/schemas/company-jobs-count-result/)
- [CompanyPostsResult](https://docs.up2data.ai/v1/schemas/company-posts-result/)
- [CompanyHeadcountResult](https://docs.up2data.ai/v1/schemas/company-headcount-result/)
- [ProfileActivityMultiResult](https://docs.up2data.ai/v1/schemas/profile-activity-multi-result/)
- [ProfileActivityResult](https://docs.up2data.ai/v1/schemas/profile-activity-result/)
- [ActivityComment](https://docs.up2data.ai/v1/schemas/activity-comment/)
- [ActivityReaction](https://docs.up2data.ai/v1/schemas/activity-reaction/)
- [ActivityTargetPost](https://docs.up2data.ai/v1/schemas/activity-target-post/)
- [PostEngagementResult](https://docs.up2data.ai/v1/schemas/post-engagement-result/)
- [EngagementActor](https://docs.up2data.ai/v1/schemas/engagement-actor/)
- [PostComment](https://docs.up2data.ai/v1/schemas/post-comment/)
- [PostReaction](https://docs.up2data.ai/v1/schemas/post-reaction/)
- [PostRepost](https://docs.up2data.ai/v1/schemas/post-repost/)
- [Pagination](https://docs.up2data.ai/v1/schemas/pagination/)
- [BatchJob](https://docs.up2data.ai/v1/schemas/batch-job/)
- [BatchJobResult](https://docs.up2data.ai/v1/schemas/batch-job-result/)
- [BatchResultPage](https://docs.up2data.ai/v1/schemas/batch-result-page/)
- [Signal](https://docs.up2data.ai/v1/schemas/signal/)
- [SignalRun](https://docs.up2data.ai/v1/schemas/signal-run/)
- [Error](https://docs.up2data.ai/v1/schemas/error/)
- [Account](https://docs.up2data.ai/v1/schemas/account/)
- [Webhook signing](https://docs.up2data.ai/v1/schemas/webhook-signing/)
- [Meta](https://docs.up2data.ai/v1/schemas/meta/)
