Page sizes
| Endpoint | Parameter | Range | Default |
|---|---|---|---|
GET /pipeline |
limit |
1–100 |
25 |
GET /saved-searches/:id/runs |
limit |
1–100 |
50 |
GET /saved-searches/:id/runs/:runId/matches |
limit |
1–500 |
25 |
POST /tenders/:tenderId/look-alike |
maxResults |
1–100 |
25 |
offset starts at 0. Pipeline pagination uses an opaque cursor instead.
Resource limits
| Limit | Value |
|---|---|
| Saved searches per company | 10 |
| Analysis questions per request | 1–20 |
| Request body size | 10 MB |
| CPV code length | 8 characters |
| Semantic phrase length | at least 5 characters |
| Saved-search name | at least 1 character |
| Comment content | 1–10,000 characters |
| Uploaded document size | 25 MB |
| Uploaded document types | PDF, DOCX, XLSX, XLS, RTF, TXT, JPEG, PNG |
| Pipeline tags per tender | 20 |
| Pipeline tag length | 1–40 characters |
Query fit values |
match, industry_match, not_match |
Validation rules
submissionDeadlineAtLeastDayscannot be combined withsubmissionDeadlineAfterorsubmissionDeadlineBefore.publishedDaysAgocannot be combined withpublishedAfterorpublishedBefore.startPageandendPagemust be supplied together to filter document pages.maxResultsis capped at100; look-alike has no pagination beyond that cap.- Pipeline tags are replaced, not merged, and are trimmed and de-duplicated before the caps are applied. Unknown tags are added to the company vocabulary.
- Pipeline stage writes accept only the keys listed by
GET /pipeline/stages; hidden stages are rejected.
Time and retention
- Timestamps in responses are ISO 8601 strings.
- The API does not expose a retention policy through an endpoint. Contact your Kosmobids administrator for contractual retention details.
Rate limits
Every authenticated request is counted against a per-company bucket. The defaults are:
| Window | Limit |
|---|---|
| 1 second | 3 requests |
| 1 minute | 100 requests |
| 1 hour | 1,000 requests |
Some endpoints have tighter limits: search, document analysis, look-alike discovery, and saved-search triggers are capped per minute, and tender document uploads are capped at 60 per hour. A request is rejected with 429 when any window is exhausted. Rejected requests do not consume quota.
Every authenticated response includes the current state of each window:
| Header | Meaning |
|---|---|
x-rate-limit-second-limit / -remaining |
Requests allowed / left in the current second. |
x-rate-limit-second-reset |
Unix epoch second at which the second window resets. |
x-rate-limit-minute-limit / -remaining / -reset |
Same for the one-minute window. |
x-rate-limit-hour-limit / -remaining / -reset |
Same for the one-hour window. |
Retry-After |
On 429, the number of seconds to wait before retrying. |
Do not retry a 429 before Retry-After elapses. Use the remaining and reset headers instead of fixed sleeps.