# TimeSubmit API

The TimeSubmit REST API: manage clients, projects and assignments, read consultants and invoices, and receive timesheet and invoice events.

The TimeSubmit API connects your consultancy's data to the rest of your systems, such as a finance tool, a CRM or a data warehouse. With it you can:

- read and change your clients, projects and assignments;
- read your consultants and invoices;
- hear when a timesheet or an invoice moves, by polling events or receiving signed webhooks.

## Base URL

Every request goes to `https://www.timesubmit.com/api/v1`, with a key as a bearer token. Bodies and answers are JSON, and times are ISO 8601 in UTC.

```bash
curl "https://www.timesubmit.com/api/v1/clients?limit=2" \
  -H "Authorization: Bearer $TIMESUBMIT_API_KEY"
```

## Plans

The API is on the Core, Margin and Enterprise plans (see [pricing](https://www.timesubmit.com/pricing)). A consultancy admin creates keys under Settings, then API & Webhooks.

## Where to start

1. [Quickstart](https://www.timesubmit.com/developers/quickstart): make your first call, a read that changes nothing, in a few minutes.
2. [Authentication](https://www.timesubmit.com/developers/authentication): create a key and choose its scopes.
3. [API reference](https://www.timesubmit.com/developers/reference): every resource and operation, with the scope each one needs.
4. [Webhooks](https://www.timesubmit.com/developers/webhooks): be told when a timesheet or an invoice moves, and verify each delivery.

The rules every call shares are on their own pages: [errors](https://www.timesubmit.com/developers/errors), [pagination](https://www.timesubmit.com/developers/pagination), [idempotency](https://www.timesubmit.com/developers/idempotency), [rate limits](https://www.timesubmit.com/developers/rate-limits) and [versioning](https://www.timesubmit.com/developers/versioning).

## OpenAPI

The API is also described as an [OpenAPI 3.1 document](https://www.timesubmit.com/developers/openapi.json), for generating a client or importing into an API tool.
