Schema-per-tenant APIs
There is no static API reference for Twenty. Each workspace has its own schema — when you add a custom object (sayInvoice), it immediately gets REST and GraphQL endpoints identical to built-in objects like Company or Person. The API is generated from the schema, so endpoints use your object and field names directly — no opaque IDs.
Your workspace-specific API documentation is available under Settings → API & Webhooks after creating an API key. It includes an interactive playground where you can execute real calls against your data.
Two APIs
Core API —/rest/ and /graphql/
CRUD on records: People, Companies, Opportunities, your custom objects. Query, filter, traverse relations.
Metadata API — /rest/metadata/ and /metadata/
Schema management: create/modify/delete objects, fields, and relations. This is how you programmatically change your data model.
Both are available as REST and GraphQL. GraphQL adds batch upserts and the ability to traverse relations in a single query. Same underlying data either way.
Base URLs
Authentication
Batch operations
Both REST and GraphQL support batching up to 60 records per request — create, update, or delete. GraphQL also supports batch upsert (create-or-update in one call) using plural names likeCreateCompanies.
Selecting fields (REST)
REST record endpoints accept afields query parameter to return only the fields you need:
idis always returned.- Composite fields (like
emailsorname) are selected as a whole by their field name. - A many-to-one relation field returns its join column (e.g.
companyId) withdepth=0. One-to-many relation fields are only returned withdepth=1. Withdepth=1, only the relation fields listed infieldsare expanded. - Unknown fields, or fields your role cannot read, return a
400error.
fields is omitted on an object with more than 200 readable fields, each record returns a default set of 200 fields: id, the label and image identifier fields, createdAt, updatedAt, deletedAt, position, then standard fields before custom fields, ordered by name. Pass fields explicitly to read any field beyond that default set.