Skip to content
Maua.Culturewire

Prismic

Headless CMS: custom types, slices and published content

E-commerceCatalog1 tool · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • Repository nameRequiredSubdomain
    • Write token (Write API)SecretRequired

    Where to find them

    1. In Prismic open “Settings” → “API & Security” → “Write APIs” and generate a token.
    2. Enter the repository name here.

Tools (1)

  • Prismic API requestPRISMIC_SEND_REQUEST

    Authenticated call to the Prismic API (https://customtypes.prismic.io). Any endpoint of the API is allowed. Examples: GET /customtypes, GET /customtypes/{id}, POST /customtypes/insert {…}, POST /customtypes/update {…}, GET /slices; published content: GET https://{repository}.cdn.prismic.io/api/v2 (master ref) and GET https://{repository}.cdn.prismic.io/api/v2/documents/search?ref=…&q=[[at(document.type,"blog_post")]].

    Required scopes

    No scopes required

    Input

    Prismic API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.