Presscart Questionnaires API

The Questionnaires API from Presscart — 6 operation(s) for questionnaires.

GitHub OpenAPI

Operations 6

GET /questionnaires/{campaign_id} Retrieve a campaign's questionnaire #
POST /questionnaires/{campaign_id}/ensure Ensure an eligible campaign's questionnaire assignment #
PATCH /questionnaires/{campaign_id}/answers Save a batch of answers on a campaign's questionnaire #
POST /questionnaires/{campaign_id}/story-type Select the story type for a campaign's questionnaire #
POST /questionnaires/{campaign_id}/submit Submit a campaign's questionnaire #

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/presscart-com:presscart-com-questionnaires-api"
All apis
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.

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. 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 Specification

presscart-com-questionnaires-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.9.4
  title: PRESSCART PROD Questionnaires API
  description: API Documentation
security:
- Bearer: []
tags:
- name: Questionnaires
paths:
  /questionnaires/{campaign_id}/link:
    post:
      tags:
      - Questionnaires
      summary: Link an uploaded file to a campaign questionnaire
      description: Create a questionnaire record by linking a previously uploaded file to a campaign.
      parameters:
      - schema:
          type: string
          format: uuid
          example: cf4f6542-13c2-4d8e-a6ff-0ce20fd2f177
        required: true
        name: campaign_id
        in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                file_id:
                  type: string
                  description: Uploaded file key
                file_url:
                  type: string
                  format: uri
                  description: Uploaded file URL
                file_name:
                  type: string
                  description: Original file name
                file_size:
                  type: number
                  description: File size in bytes
              required:
              - file_id
              - file_url
              - file_name
              - file_size
      responses:
        '201':
          description: Questionnaire linked successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Questionnaire'
      operationId: postQuestionnairesByCampaignIdLink
  /questionnaires/{campaign_id}:
    get:
      tags:
      - Questionnaires
      summary: Retrieve a campaign's questionnaire
      description: Returns the LIVE view of a campaign's questionnaire — live schema-filtered answers, live completeness, and live story eligibility, regardless of submitted/unlocked status. Always 200s; `questionnaire` is null until the campaign has been assigned a questionnaire.
      parameters:
      - schema:
          type: string
          format: uuid
          example: cf4f6542-13c2-4d8e-a6ff-0ce20fd2f177
        required: true
        name: campaign_id
        in: path
      responses:
        '200':
          description: Campaign questionnaire envelope retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignQuestionnaireEnvelope'
      operationId: getQuestionnairesByCampaignId
  /questionnaires/{campaign_id}/ensure:
    post:
      tags:
      - Questionnaires
      summary: Ensure an eligible campaign's questionnaire assignment
      description: Returns or creates the same live questionnaire when the campaign currently requires the writing questionnaire.
      parameters:
      - schema:
          type: string
          format: uuid
          example: cf4f6542-13c2-4d8e-a6ff-0ce20fd2f177
        required: true
        name: campaign_id
        in: path
      responses:
        '200':
          description: Campaign questionnaire assignment ensured successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignQuestionnaire'
        '409':
          description: The campaign does not currently require the writing questionnaire.
          content:
            application/json:
              schema:
                type: object
                properties:
                  name:
                    type: string
                  message:
                    type: string
                  code:
                    type: string
                  meta:
                    type: object
                    additionalProperties: {}
                required:
                - name
                - message
      operationId: postQuestionnairesByCampaignIdEnsure
  /questionnaires/{campaign_id}/answers:
    patch:
      tags:
      - Questionnaires
      summary: Save a batch of answers on a campaign's questionnaire
      description: Saves up to 50 answers for one questionnaire module (profile, shared_core, or story). PROFILE answers are always editable; shared_core/story answers are rejected with a 409 once the questionnaire has been submitted and not since unlocked.
      parameters:
      - schema:
          type: string
          format: uuid
          example: cf4f6542-13c2-4d8e-a6ff-0ce20fd2f177
        required: true
        name: campaign_id
        in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                module:
                  type: string
                  enum:
                  - profile
                  - shared_core
                  - story
                answers:
                  type: array
                  items:
                    type: object
                    properties:
                      field_key:
                        type: string
                      value:
                        anyOf:
                        - type: string
                        - type: array
                          items:
                            type: string
                        - type: number
                        - type: boolean
                        - {}
                        - {}
                    required:
                    - field_key
                    - value
                  minItems: 1
                  maxItems: 50
              required:
              - module
              - answers
      responses:
        '200':
          description: Answers saved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  saved:
                    type: integer
                required:
                - saved
      operationId: patchQuestionnairesByCampaignIdAnswers
  /questionnaires/{campaign_id}/story-type:
    post:
      tags:
      - Questionnaires
      summary: Select the story type for a campaign's questionnaire
      description: Explicitly picks (or confirms) which story the STORY module should collect answers for. Eligibility is recomputed live against the campaign's current placement union on every call; an ineligible choice is rejected with a 400.
      parameters:
      - schema:
          type: string
          format: uuid
          example: cf4f6542-13c2-4d8e-a6ff-0ce20fd2f177
        required: true
        name: campaign_id
        in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                story_type:
                  type: string
                  enum:
                  - PROFILE_ARTICLE
                  - THOUGHT_LEADERSHIP
                  - LISTICLE
                  - PRESS_RELEASE
                  - EDUCATION
                  - PERSONAL_EXPERIENCE
                  - CASE_STUDY
              required:
              - story_type
      responses:
        '200':
          description: Story type selected successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  story_type:
                    type: string
                    enum:
                    - PROFILE_ARTICLE
                    - THOUGHT_LEADERSHIP
                    - LISTICLE
                    - PRESS_RELEASE
                    - EDUCATION
                    - PERSONAL_EXPERIENCE
                    - CASE_STUDY
                required:
                - story_type
      operationId: postQuestionnairesByCampaignIdStoryType
  /questionnaires/{campaign_id}/submit:
    post:
      tags:
      - Questionnaires
      summary: Submit a campaign's questionnaire
      description: Validates combined core-completeness across PROFILE + SHARED_CORE + (when eligible) STORY, then snapshots the effective answers and locks the questionnaire for edits. Rejects with a 400 listing `unanswered_core` when incomplete, and a 409 when already submitted and not since unlocked.
      parameters:
      - schema:
          type: string
          format: uuid
          example: cf4f6542-13c2-4d8e-a6ff-0ce20fd2f177
        required: true
        name: campaign_id
        in: path
      responses:
        '200':
          description: Questionnaire submitted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  submission_id:
                    type: string
                    format: uuid
                required:
                - submission_id
      operationId: postQuestionnairesByCampaignIdSubmit
components:
  schemas:
    CampaignQuestionnaireEnvelope:
      type: object
      properties:
        enabled:
          type: boolean
        requires_action:
          type: boolean
        questionnaire:
          $ref: '#/components/schemas/CampaignQuestionnaire'
      required:
      - enabled
      - requires_action
      - questionnaire
    CampaignQuestionnaire:
      type:
      - object
      - 'null'
      properties:
        id:
          type: string
          format: uuid
        campaign_id:
          type: string
          format: uuid
        status:
          type: string
          enum:
          - in_progress
          - submitted
          - unlocked
        story_type:
          type:
          - string
          - 'null'
          enum:
          - PROFILE_ARTICLE
          - THOUGHT_LEADERSHIP
          - LISTICLE
          - PRESS_RELEASE
          - EDUCATION
          - PERSONAL_EXPERIENCE
          - CASE_STUDY
          - null
        story_selected_at:
          type:
          - string
          - 'null'
        submitted_at:
          type:
          - string
          - 'null'
        unlocked_at:
          type:
          - string
          - 'null'
        unlock_note:
          type:
          - string
          - 'null'
        eligibility:
          type: object
          properties:
            story_module:
              type: boolean
            eligible_story_types:
              type: array
              items:
                type: string
                enum:
                - PROFILE_ARTICLE
                - THOUGHT_LEADERSHIP
                - LISTICLE
                - PRESS_RELEASE
                - EDUCATION
                - PERSONAL_EXPERIENCE
                - CASE_STUDY
            preselected:
              type:
              - string
              - 'null'
              enum:
              - PROFILE_ARTICLE
              - THOUGHT_LEADERSHIP
              - LISTICLE
              - PRESS_RELEASE
              - EDUCATION
              - PERSONAL_EXPERIENCE
              - CASE_STUDY
              - null
            recommendations:
              type: array
              items:
                type: object
                properties:
                  story_type:
                    type: string
                    enum:
                    - PROFILE_ARTICLE
                    - THOUGHT_LEADERSHIP
                    - LISTICLE
                    - PRESS_RELEASE
                    - EDUCATION
                    - PERSONAL_EXPERIENCE
                    - CASE_STUDY
                  rank:
                    type: integer
                  reasons:
                    type: array
                    items:
                      type: string
                required:
                - story_type
                - rank
                - reasons
          required:
          - story_module
          - eligible_story_types
          - preselected
          - recommendations
        modules:
          type: array
          items:
            type: object
            properties:
              module_type:
                type: string
                enum:
                - PROFILE
                - SHARED_CORE
                - STORY
              form_key:
                type: string
              name:
                type: string
              fields:
                type: array
                items:
                  $ref: '#/components/schemas/QuestionnaireField'
              answers:
                type: object
                additionalProperties:
                  type: object
                  properties:
                    value:
                      anyOf:
                      - type: string
                      - type: array
                        items:
                          type: string
                      - type: number
                      - type: boolean
                      - {}
                      - {}
                    source:
                      type: string
                    confidence:
                      type:
                      - number
                      - 'null'
                    derived_from:
                      type:
                      - string
                      - 'null'
                    updated_at:
                      type: string
                  required:
                  - value
                  - source
                  - confidence
                  - updated_at
              completeness:
                $ref: '#/components/schemas/QuestionnaireCompleteness'
            required:
            - module_type
            - form_key
            - name
            - fields
            - answers
            - completeness
        overall_completeness:
          $ref: '#/components/schemas/QuestionnaireCompleteness'
        pending_story_core_count:
          type: integer
          minimum: 0
          default: 0
        profile_tags:
          type: object
          properties:
            audience:
              type: array
              items:
                type: string
            topic:
              type: array
              items:
                type: string
          required:
          - audience
          - topic
      required:
      - id
      - campaign_id
      - status
      - story_type
      - story_selected_at
      - submitted_at
      - unlocked_at
      - unlock_note
      - eligibility
      - modules
      - overall_completeness
      - profile_tags
    QuestionnaireCompleteness:
      type: object
      properties:
        core_complete:
          type: boolean
        unanswered_core:
          type: array
          items:
            type: string
        optional_remaining:
          type: integer
        answered_count:
          type: integer
        total_count:
          type: integer
      required:
      - core_complete
      - unanswered_core
      - optional_remaining
      - answered_count
      - total_count
    Questionnaire:
      type: object
      properties:
        id:
          type: string
          format: uuid
        campaign_id:
          type: string
          format: uuid
        objectives:
          type: string
          example: Eos vereor beatus decipio facere timor volaticus demens alveus defetiscor. Denego fuga deputo depraedor reprehenderit. Desidero viscus adfectus statim voluptatem articulus clementia pecus ciminatio.
        keywords:
          type:
          - string
          - 'null'
          example: null
        target_audience:
          type:
          - string
          - 'null'
          example: null
        tone:
          type:
          - string
          - 'null'
          example: null
        writing_samples:
          type:
          - string
          - 'null'
          example: null
        file_id:
          type:
          - string
          - 'null'
          example: null
        file_name:
          type:
          - string
          - 'null'
          example: null
        file_size:
          type:
          - number
          - 'null'
          example: null
        file_url:
          type: string
        created_at:
          anyOf:
          - type:
            - string
            - 'null'
          - type: string
          - {}
          example: '2026-11-19T17:30:12.165Z'
        updated_at:
          anyOf:
          - type:
            - string
            - 'null'
          - type: string
          - {}
          example: '2026-11-19T17:30:12.165Z'
        deleted_at:
          anyOf:
          - type:
            - string
            - 'null'
          - type: string
          - {}
          example: null
      required:
      - id
      - campaign_id
      - objectives
      - keywords
      - target_audience
      - tone
      - writing_samples
      - file_id
      - file_name
      - file_size
      - created_at
      - updated_at
      - deleted_at
    QuestionnaireField:
      type: object
      properties:
        key:
          type: string
          minLength: 1
        label:
          type: string
          minLength: 1
        type:
          type: string
          enum:
          - TEXT
          - TEXTAREA
          - RICH_TEXT
          - SELECT
          - MULTISELECT
          - BOOLEAN
          - NUMBER
          - DATE
          - URL
          - EMAIL
          - FILE
        required:
          type: boolean
          default: false
        core:
          type: boolean
          default: false
        order:
          type: integer
        options:
          type: array
          items:
            type: string
        placeholder:
          type: string
        ai_assist:
          type: string
          enum:
          - manual
          - suggestion
          - prefill
          default: manual
        example_answer:
          type: string
        how_to_answer:
          type: string
        drill_down_prompts:
          type: array
          items:
            type: string
        profile_write_through:
          type: string
          enum:
          - name
          - website_url
          - overview
          - products_and_services
          - founded_year
          - key_achievements
          - unique_value_propositions
          - legal_company_name
        capture:
          type: string
          enum:
          - audience_tags
          - industry_tags
      required:
      - key
      - label
      - type
      - order
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
    ApiKey:
      type: http
      scheme: bearer
      bearerFormat: Presscart API key (pc_…)