Directus api API
Directus api API as documented publicly. Contract generated from the documentation by API Evangelist (2026-11-30); not the provider's own document.
Directus api API as documented publicly. Contract generated from the documentation by API Evangelist (2026-11-30); not the provider's own document.
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/directusio:api-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.1.0
info:
title: Directus api API
version: '2026-11-30'
description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-30: 12 operation(s) read from 2 public documentation page(s) (each operation
names its page in x-source). This is not the provider''s published contract; Directus has published no machine-readable contract that the
pipeline could find. Engine: local.'
x-evidence-tiers:
code-example: 4
documentation: 25
pages-with-code: 2
pages-read: 7
x-generated-from: documentation
x-provenance: generated
x-authored-by: API Evangelist
x-generated: '2026-11-30'
x-generator: generate-contract-from-docs.py
x-engine: local
x-sources:
- https://directus.com/docs/api/collections
- https://directus.com/docs/api/items
x-docs-section: api
paths:
/collections:
get:
operationId: get_collections
tags:
- Collections
summary: Collections are the individual collections of items, similar to tables in a database.
x-source: https://directus.com/docs/api/collections
parameters:
- name: offset
in: query
required: false
schema:
type: integer
description: How many items to skip when fetching data.
- name: meta
in: query
required: false
schema:
type: string
description: What metadata to return in the response.
responses:
'200':
description: Success (status as documented)
content:
application/json:
schema:
$ref: '#/components/schemas/GetCollectionsResponse'
x-evidence:
kind: documentation
post:
operationId: post_collections
tags:
- Collections
summary: Create a Collection
x-source: https://directus.com/docs/api/collections
parameters:
- name: meta
in: query
required: false
schema:
type: string
description: What metadata to return in the response.
- name: concurrentIndexCreation
in: query
required: false
schema:
type: boolean
description: Attempts to concurrently create a field index if supported.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PostCollectionsRequest'
responses:
'201':
description: Success (status as documented)
content:
application/json:
schema:
$ref: '#/components/schemas/PostCollectionsResponse'
x-evidence:
kind: documentation
/collections/{id}:
delete:
operationId: delete_collections_id
tags:
- Collections
summary: Delete a Collection
x-source: https://directus.com/docs/api/collections
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Success (status as documented)
x-evidence:
kind: documentation
get:
operationId: get_collections_id
tags:
- Collections
summary: Retrieve a Collection
x-source: https://directus.com/docs/api/collections
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: meta
in: query
required: false
schema:
type: string
description: What metadata to return in the response.
responses:
'200':
description: Success (status as documented)
content:
application/json:
schema:
$ref: '#/components/schemas/GetCollectionsIdResponse'
x-evidence:
kind: documentation
patch:
operationId: patch_collections_id
tags:
- Collections
summary: Update a Collection
x-source: https://directus.com/docs/api/collections
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: meta
in: query
required: false
schema:
type: string
description: What metadata to return in the response.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PatchCollectionsIdRequest'
responses:
'200':
description: Success (status as documented)
content:
application/json:
schema:
$ref: '#/components/schemas/PatchCollectionsIdResponse'
x-evidence:
kind: documentation
/items/{collection}:
delete:
operationId: delete_items_collection
tags:
- Items
summary: Delete Multiple Items
x-source: https://directus.com/docs/api/items
parameters:
- name: collection
in: path
required: true
schema:
type: string
- name: collection
in: query
required: true
schema:
type: string
description: Collection of which you want to retrieve the items from.
- name: fields
in: query
required: false
schema:
type: array
description: Control what fields are being returned in the object.
- name: limit
in: query
required: false
schema:
type: integer
description: A limit on the number of objects that are returned.
- name: offset
in: query
required: false
schema:
type: integer
description: How many items to skip when fetching data.
- name: sort
in: query
required: false
schema:
type: array
description: How to sort the returned items.
- name: filter
in: query
required: false
schema:
type: string
description: Select items in collection by given conditions.
- name: search
in: query
required: false
schema:
type: string
description: Filter by items that contain the given search query in one of their fields.
- name: meta
in: query
required: false
schema:
type: string
description: What metadata to return in the response.
responses:
'200':
description: Success (status as documented)
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteItemsCollectionResponse'
x-evidence:
kind: documentation
get:
operationId: get_items_collection
tags:
- Items
summary: List Items in a Collection
x-source: https://directus.com/docs/api/items
parameters:
- name: collection
in: path
required: true
schema:
type: string
- name: collection
in: query
required: true
schema:
type: string
description: Unique identifier of the collection the item resides in.
- name: fields
in: query
required: false
schema:
type: array
description: Control what fields are being returned in the object.
- name: limit
in: query
required: false
schema:
type: integer
description: A limit on the number of objects that are returned.
- name: offset
in: query
required: false
schema:
type: integer
description: How many items to skip when fetching data.
- name: page
in: query
required: false
schema:
type: integer
description: Cursor for use in pagination. Often used in combination with limit.
- name: meta
in: query
required: false
schema:
type: string
description: What metadata to return in the response.
- name: sort
in: query
required: false
schema:
type: array
description: How to sort the returned items. sort is a CSV of fields used to sort the fetched items.
- name: filter
in: query
required: false
schema:
type: string
description: Select items in collection by given conditions.
- name: search
in: query
required: false
schema:
type: string
description: Filter by items that contain the given search query in one of their fields.
- name: export
in: query
required: false
schema:
type: string
description: Saves the API response to a file. Accepts one of csv, csv_utf8, json, xml, yaml.
- name: version
in: query
required: false
schema:
type: string
description: Retrieve an item's state from a specific Content Version.
- name: versionRaw
in: query
required: false
schema:
type: boolean
description: Retrieve the raw delta of a Content Version item instead of the full merged item.
- name: backlink
in: query
required: false
schema:
type: boolean
description: Retrieve relational items excluding reverse relations when using wildcard fields.
- name: aggregate
in: query
required: false
schema:
type: string
description: Aggregate functions allow you to perform calculations on a set of values.
- name: group
in: query
required: false
schema:
type: array
description: Grouping allows for running the aggregation functions based on a shared value.
- name: deep
in: query
required: false
schema:
type: string
description: Deep allows you to set any of the other query parameters on a nested relational dataset.
- name: alias
in: query
required: false
schema:
type: object
description: Alias allows you to rename fields in the response payload.
responses:
'200':
description: Success (status as documented)
content:
application/json:
schema:
$ref: '#/components/schemas/GetItemsCollectionResponse'
x-evidence:
kind: documentation
patch:
operationId: patch_items_collection
tags:
- Items
summary: Update Multiple Items
x-source: https://directus.com/docs/api/items
parameters:
- name: collection
in: path
required: true
schema:
type: string
- name: collection
in: query
required: true
schema:
type: string
description: Collection of which you want to retrieve the items from.
- name: fields
in: query
required: false
schema:
type: array
description: Control what fields are being returned in the object.
- name: limit
in: query
required: false
schema:
type: integer
description: A limit on the number of objects that are returned.
- name: offset
in: query
required: false
schema:
type: integer
description: How many items to skip when fetching data.
- name: sort
in: query
required: false
schema:
type: array
description: How to sort the returned items.
- name: filter
in: query
required: false
schema:
type: string
description: Select items in collection by given conditions.
- name: search
in: query
required: false
schema:
type: string
description: Filter by items that contain the given search query in one of their fields.
- name: meta
in: query
required: false
schema:
type: string
description: What metadata to return in the response.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PatchItemsCollectionRequest'
responses:
'200':
description: Success (status as documented)
content:
application/json:
schema:
$ref: '#/components/schemas/PatchItemsCollectionResponse'
x-evidence:
kind: documentation
post:
operationId: post_items_collection
tags:
- Items
summary: Create Multiple Items
x-source: https://directus.com/docs/api/items
parameters:
- name: collection
in: path
required: true
schema:
type: string
- name: collection
in: query
required: true
schema:
type: string
description: Collection of which you want to retrieve the items from.
- name: fields
in: query
required: false
schema:
type: array
description: Control what fields are being returned in the object.
- name: limit
in: query
required: false
schema:
type: integer
description: A limit on the number of objects that are returned.
- name: offset
in: query
required: false
schema:
type: integer
description: How many items to skip when fetching data.
- name: sort
in: query
required: false
schema:
type: array
description: How to sort the returned items.
- name: filter
in: query
required: false
schema:
type: string
description: Select items in collection by given conditions.
- name: search
in: query
required: false
schema:
type: string
description: Filter by items that contain the given search query in one of their fields.
- name: meta
in: query
required: false
schema:
type: string
description: What metadata to return in the response.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PostItemsCollectionRequest'
responses:
'201':
description: Success (status as documented)
content:
application/json:
schema:
$ref: '#/components/schemas/PostItemsCollectionResponse'
x-evidence:
kind: documentation
/items/{collection}/{id}:
delete:
operationId: delete_items_collection_id
tags:
- Items
summary: Delete an Item
x-source: https://directus.com/docs/api/items
parameters:
- name: collection
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
- name: collection
in: query
required: true
schema:
type: string
description: Collection of which you want to retrieve the items from.
responses:
'200':
description: Success (status as documented)
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteItemsCollectionIdResponse'
x-evidence:
kind: documentation
get:
operationId: get_items_collection_id
tags:
- Items
summary: Retrieve an Item
x-source: https://directus.com/docs/api/items
parameters:
- name: collection
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
- name: collection
in: query
required: true
schema:
type: string
description: Collection of which you want to retrieve the items from.
- name: version
in: query
required: false
schema:
type: string
description: Retrieve an item's state from a specific Content Version.
- name: fields
in: query
required: false
schema:
type: array
description: Control what fields are being returned in the object.
- name: meta
in: query
required: false
schema:
type: string
description: What metadata to return in the response.
responses:
'200':
description: Success (status as documented)
content:
application/json:
schema:
$ref: '#/components/schemas/GetItemsCollectionIdResponse'
x-evidence:
kind: documentation
patch:
operationId: patch_items_collection_id
tags:
- Items
summary: Update an Item
x-source: https://directus.com/docs/api/items
parameters:
- name: collection
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
- name: collection
in: query
required: true
schema:
type: string
description: Collection of which you want to retrieve the items from.
- name: fields
in: query
required: false
schema:
type: array
description: Control what fields are being returned in the object.
- name: meta
in: query
required: false
schema:
type: string
description: What metadata to return in the response.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PatchItemsCollectionIdRequest'
responses:
'200':
description: Success (status as documented)
content:
application/json:
schema:
$ref: '#/components/schemas/PatchItemsCollectionIdResponse'
x-evidence:
kind: documentation
security:
- bearer: []
components:
schemas:
GetCollectionsResponse:
type: object
properties:
data:
type: array
description: List of collection objects.
PostCollectionsRequest:
type: object
properties:
collection:
type: string
description: Unique name of the collection.
fields:
type: array
description: The fields contained in this collection.
icon:
type: string
description: Name of a Google Material Design Icon that's assigned to this collection.
note:
type: string
description: A note describing the collection.
display_template:
type: string
description: Text representation of how items from this collection are shown across the system.
hidden:
type: boolean
description: Whether or not the collection is hidden from the navigation in the admin app.
singleton:
type: boolean
description: Whether or not the collection is treated as a single object.
translation:
type: string
description: Key value pairs of how to show this collection's name in different languages in the admin app.
versioning:
type: boolean
description: Whether or not Content Versioning is enabled for this collection.
archive_field:
type: string
description: What field holds the archive value.
archive_app_filter:
type: string
description: What value to use for "archived" items.
archive_value:
type: string
description: What value to use to "unarchive" items.
unarchive_value:
type: string
description: Whether or not to show the "archived" filter.
sort_field:
type: string
description: The sort field in the collection.
required:
- collection
PostCollectionsResponse:
type: object
properties:
collection:
type: string
description: Name of the collection.
icon:
type: string
description: Icon displayed in the Data Studio.
note:
type: string
description: Short description displayed in the Data Studio.
display_template:
type: string
description: How items in this collection should be displayed.
hidden:
type: boolean
description: Whether or not this collection is hidden.
singleton:
type: boolean
description: Whether or not this collection is treated as a singleton.
translations:
type: array
description: How this collection's name is displayed in different languages.
archive_field:
type: string
description: What field in the collection holds the archived state.
archive_app_filter:
type: boolean
description: Archive filter value.
archive_value:
type: string
description: Value to set when archiving.
unarchive_value:
type: string
description: Value to set when unarchiving.
sort_field:
type: string
description: Field used for sorting.
accountability:
type: string
description: What data is tracked.
item_duplication_fields:
type: array
description: Fields duplicated during "Save as copy".
sort:
type: integer
description: Sort order relative to other collections.
group:
type: string
description: Name of the parent collection.
collapse:
type: string
description: Default behavior of this collection when it has nested collections.
versioning:
type: boolean
description: Whether Content Versioning is enabled.
GetCollectionsIdResponse:
type: object
properties:
collection:
type: string
description: Name of the collection.
icon:
type: string
description: Icon displayed in the Data Studio.
note:
type: string
description: Short description displayed in the Data Studio.
display_template:
type: string
description: How items in this collection should be displayed.
hidden:
type: boolean
description: Whether or not this collection is hidden.
singleton:
type: boolean
description: Whether or not this collection is treated as a singleton.
translations:
type: array
description: How this collection's name is displayed in different languages.
archive_field:
type: string
description: What field in the collection holds the archived state.
archive_app_filter:
type: boolean
description: Archive filter value.
archive_value:
type: string
description: Value to set when archiving.
unarchive_value:
type: string
description: Value to set when unarchiving.
sort_field:
type: string
description: Field used for sorting.
accountability:
type: string
description: What data is tracked.
item_duplication_fields:
type: array
description: Fields duplicated during "Save as copy".
sort:
type: integer
description: Sort order relative to other collections.
group:
type: string
description: Name of the parent collection.
collapse:
type: string
description: Default behavior of this collection when it has nested collections.
versioning:
type: boolean
description: Whether Content Versioning is enabled.
PatchCollectionsIdRequest:
type: object
properties:
meta:
type: object
description: Metadata of the collection.
required:
- meta
PatchCollectionsIdResponse:
type: object
properties:
collection:
type: string
description: Name of the collection.
icon:
type: string
description: Icon displayed in the Data Studio.
note:
type: string
description: Short description displayed in the Data Studio.
display_template:
type: string
description: How items in this collection should be displayed.
hidden:
type: boolean
description: Whether or not this collection is hidden.
singleton:
type: boolean
description: Whether or not this collection is treated as a singleton.
translations:
type: array
description: How this collection's name is displayed in different languages.
archive_field:
type: string
description: What field in the collection holds the archived state.
archive_app_filter:
type: boolean
description: Archive filter value.
archive_value:
type: string
description: Value to set when archiving.
unarchive_value:
type: string
description: Value to set when unarchiving.
sort_field:
type: string
description: Field used for sorting.
accountability:
type: string
description: What data is tracked.
item_duplication_fields:
type: array
description: Fields duplicated during "Save as copy".
sort:
type: integer
description: Sort order relative to other collections.
group:
type: string
description: Name of the parent collection.
collapse:
type: string
description: Default behavior of this collection when it has nested collections.
versioning:
type: boolean
description: Whether Content Versioning is enabled.
DeleteItemsCollectionResponse:
type: object
properties:
code:
type: integer
description: Error code (when error)
message:
type: string
description: Error message (when error)
GetItemsCollectionResponse:
type: object
properties:
data:
type: array
description: Successful request data array
meta:
type: object
description: Metadata object (total_count, filter_count, etc.)
code:
type: integer
description: Error code (when error)
message:
type: string
description: Error message (when error)
PatchItemsCollectionRequest:
type: object
properties:
data:
type: array
description: Array of partial item objects to update.
required:
- data
PatchItemsCollectionResponse:
type: object
properties:
data:
type: array
description: Updated items.
meta:
type: object
description: Metadata about the operation.
code:
type: integer
description: Error code (when error)
message:
type: string
description: Error message (when error)
PostItemsCollectionRequest:
type: object
properties:
data:
type: array
description: Array of items to create.
required:
- data
PostItemsCollectionResponse:
type: object
properties:
data:
type: array
description: Created items.
meta:
type: object
description: Metadata about the operation.
code:
type: integer
description: Error code (when error)
message:
type: string
description: Error message (when error)
DeleteItemsCollectionIdResponse:
type: object
properties:
code:
type: integer
description: Error code (when error)
message:
type: string
description: Error message (when error)
GetItemsCollectionIdResponse:
type: object
properties:
data:
type: object
description: Successful request data object
code:
type: integer
description: Error code (when error)
message:
type: string
description: Error message (when error)
PatchItemsCollectionIdRequest:
type: object
properties:
data:
type: object
description: Partial item object with fields to update.
required:
- data
PatchItemsCollectionIdResponse:
type: object
properties:
data:
type: object
description: Updated item.
code:
type: integer
description: Error code (when error)
message:
type: string
description: Error message (when error)
securitySchemes:
bearer:
type: http
scheme: bearer
tags:
- name: Collections
- name: Items