Strapi Content Entries API

CRUD operations on content-type entries. Strapi auto-generates these endpoints for each content-type defined in the application.

Operations 7

GET /api/{pluralApiId} List content entries #
POST /api/{pluralApiId} Create a content entry #
GET /api/{pluralApiId}/{documentId} Get a content entry #
PUT /api/{pluralApiId}/{documentId} Update a content entry #
DELETE /api/{pluralApiId}/{documentId} Delete a content entry #
POST /api/{pluralApiId}/{documentId}/actions/publish Publish a content entry #
POST /api/{pluralApiId}/{documentId}/actions/unpublish Unpublish a content entry #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/strapi:strapi-content-entries-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API 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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

strapi-content-entries-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Strapi REST Content Entries API
  description: The Strapi REST API provides endpoints for accessing and managing content-types created within the Strapi headless CMS.
  version: 5.0.0
  contact:
    name: Strapi Support
    url: https://strapi.io/support
  termsOfService: https://strapi.io/terms
servers:
- url: https://{host}
  description: Strapi Server
  variables:
    host:
      default: localhost:1337
      description: The hostname and port of your Strapi instance
security:
- bearerAuth: []
- apiTokenAuth: []
tags:
- name: Content Entries
  description: CRUD operations on content-type entries. Strapi auto-generates these endpoints for each content-type defined in the application.
paths:
  /api/{pluralApiId}:
    get:
      operationId: findEntries
      summary: List content entries
      description: Returns a list of entries for the specified content-type. Results can be filtered, sorted, paginated, and populated with relational data using query parameters. By default, responses include only top-level fields without populating relations, media fields, components, or dynamic zones.
      tags:
      - Content Entries
      parameters:
      - $ref: '#/components/parameters/PluralApiId'
      - $ref: '#/components/parameters/Sort'
      - $ref: '#/components/parameters/PaginationPage'
      - $ref: '#/components/parameters/PaginationPageSize'
      - $ref: '#/components/parameters/PaginationStart'
      - $ref: '#/components/parameters/PaginationLimit'
      - $ref: '#/components/parameters/Fields'
      - $ref: '#/components/parameters/Populate'
      - $ref: '#/components/parameters/Filters'
      - $ref: '#/components/parameters/Locale'
      - $ref: '#/components/parameters/Status'
      responses:
        '200':
          description: A list of content entries
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntryListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
    post:
      operationId: createEntry
      summary: Create a content entry
      description: Creates a new entry for the specified content-type. The request body must include a data object with the fields defined in the content-type schema. Returns the newly created entry.
      tags:
      - Content Entries
      parameters:
      - $ref: '#/components/parameters/PluralApiId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntryRequest'
      responses:
        '201':
          description: Entry created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntrySingleResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
  /api/{pluralApiId}/{documentId}:
    get:
      operationId: findOneEntry
      summary: Get a content entry
      description: Returns a single entry for the specified content-type by its document ID. Results can be populated with relational data using query parameters.
      tags:
      - Content Entries
      parameters:
      - $ref: '#/components/parameters/PluralApiId'
      - $ref: '#/components/parameters/DocumentId'
      - $ref: '#/components/parameters/Fields'
      - $ref: '#/components/parameters/Populate'
      - $ref: '#/components/parameters/Locale'
      - $ref: '#/components/parameters/Status'
      responses:
        '200':
          description: A single content entry
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntrySingleResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    put:
      operationId: updateEntry
      summary: Update a content entry
      description: Updates an existing entry for the specified content-type by its document ID. Only the fields included in the request body will be updated. Returns the updated entry.
      tags:
      - Content Entries
      parameters:
      - $ref: '#/components/parameters/PluralApiId'
      - $ref: '#/components/parameters/DocumentId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntryRequest'
      responses:
        '200':
          description: Entry updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntrySingleResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      operationId: deleteEntry
      summary: Delete a content entry
      description: Deletes an existing entry for the specified content-type by its document ID. Returns the deleted entry data.
      tags:
      - Content Entries
      parameters:
      - $ref: '#/components/parameters/PluralApiId'
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: Entry deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntrySingleResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
  /api/{pluralApiId}/{documentId}/actions/publish:
    post:
      operationId: publishEntry
      summary: Publish a content entry
      description: Publishes a draft content entry, making it available through the Content API. Only available when Draft and Publish is enabled on the content-type.
      tags:
      - Content Entries
      parameters:
      - $ref: '#/components/parameters/PluralApiId'
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: Entry published successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntrySingleResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
  /api/{pluralApiId}/{documentId}/actions/unpublish:
    post:
      operationId: unpublishEntry
      summary: Unpublish a content entry
      description: Unpublishes a published content entry, reverting it to draft status. Only available when Draft and Publish is enabled on the content-type.
      tags:
      - Content Entries
      parameters:
      - $ref: '#/components/parameters/PluralApiId'
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: Entry unpublished successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntrySingleResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Error:
      type: object
      properties:
        data:
          nullable: true
        error:
          type: object
          properties:
            status:
              type: integer
              description: The HTTP status code
            name:
              type: string
              description: The error name
            message:
              type: string
              description: A human-readable error message
            details:
              type: object
              description: Additional error details
    Pagination:
      type: object
      description: Pagination metadata returned with list responses
      properties:
        page:
          type: integer
          description: The current page number
        pageSize:
          type: integer
          description: The number of entries per page
        pageCount:
          type: integer
          description: The total number of pages
        total:
          type: integer
          description: The total number of entries
    EntryListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Entry'
        meta:
          type: object
          properties:
            pagination:
              $ref: '#/components/schemas/Pagination'
    EntryRequest:
      type: object
      required:
      - data
      properties:
        data:
          type: object
          description: An object containing the fields and values for the content entry. The structure depends on the content-type schema definition.
          additionalProperties: true
    Entry:
      type: object
      description: A content entry object. In Strapi 5, attributes are directly accessible at the first level of the data object (flattened format).
      properties:
        id:
          type: integer
          description: The unique integer ID of the entry
        documentId:
          type: string
          description: The unique document identifier for the entry
        createdAt:
          type: string
          format: date-time
          description: The timestamp when the entry was created
        updatedAt:
          type: string
          format: date-time
          description: The timestamp when the entry was last updated
        publishedAt:
          type: string
          format: date-time
          nullable: true
          description: The timestamp when the entry was published, or null if in draft status
        locale:
          type: string
          nullable: true
          description: The locale code of the entry, if internationalization is enabled
      additionalProperties: true
    EntrySingleResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Entry'
        meta:
          type: object
          description: Metadata about the response
  parameters:
    PaginationStart:
      name: pagination[start]
      in: query
      description: The starting index for offset-based pagination
      schema:
        type: integer
        minimum: 0
        default: 0
    DocumentId:
      name: documentId
      in: path
      required: true
      description: The unique document ID of the content entry
      schema:
        type: string
    Filters:
      name: filters
      in: query
      description: Filter entries using operators such as $eq, $ne, $lt, $lte, $gt, $gte, $in, $notIn, $contains, $notContains, $startsWith, $endsWith, $null, $notNull, $between, $and, $or, $not. Use bracket notation for nested filters (e.g., filters[title][$eq]=Hello).
      schema:
        type: object
    Populate:
      name: populate
      in: query
      description: Populate relational fields, media fields, components, or dynamic zones. Use * to populate all first-level relations or specify individual fields using dot notation.
      schema:
        oneOf:
        - type: string
        - type: object
    Locale:
      name: locale
      in: query
      description: Specify the locale for internationalized content-types. Returns entries matching the given locale code.
      schema:
        type: string
    PaginationPageSize:
      name: pagination[pageSize]
      in: query
      description: The number of entries per page for page-based pagination
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 25
    PaginationLimit:
      name: pagination[limit]
      in: query
      description: The maximum number of entries to return for offset-based pagination
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 25
    PaginationPage:
      name: pagination[page]
      in: query
      description: The page number for page-based pagination (starts at 1)
      schema:
        type: integer
        minimum: 1
        default: 1
    Status:
      name: status
      in: query
      description: Filter entries by publication status. Only applicable when Draft and Publish is enabled on the content-type.
      schema:
        type: string
        enum:
        - draft
        - published
    Fields:
      name: fields
      in: query
      description: Select specific fields to include in the response. Provide as comma-separated values or array notation.
      schema:
        oneOf:
        - type: string
        - type: array
          items:
            type: string
    PluralApiId:
      name: pluralApiId
      in: path
      required: true
      description: The plural API identifier of the content-type (e.g., articles, categories, products)
      schema:
        type: string
    Sort:
      name: sort
      in: query
      description: Sort results by one or more fields. Use field:asc or field:desc notation. Multiple sort criteria can be provided as comma-separated values or array notation (e.g., sort[0]=title:asc&sort[1]=date:desc).
      schema:
        oneOf:
        - type: string
        - type: array
          items:
            type: string
  responses:
    Forbidden:
      description: Forbidden - insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Unauthorized - missing or invalid authentication
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Bad request - invalid input or validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not found - the requested resource does not exist
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'JWT token obtained from the Users and Permissions authentication endpoint. Include as Authorization: Bearer {token}.'
    apiTokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'API token created in the Strapi admin panel under Settings > Global settings > API Tokens. Include as Authorization: Bearer {token}.'
externalDocs:
  description: Strapi REST API Documentation
  url: https://docs.strapi.io/cms/api/rest