The Art of Service Questionnaire API
The questionnaire API from The Art of Service — 6 operation(s) for questionnaire.
The questionnaire API from The Art of Service — 6 operation(s) for questionnaire.
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/theartofservice-com:theartofservice-com-questionnaire-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.2.0
info:
title: TheArtOfService Knowledge Graph Compliance Platform…
version: 1.0.0
tags:
- name: questionnaire
paths:
/api/questionnaire/upload:
post:
tags:
- questionnaire
summary: Upload Questionnaire
description: 'Upload an Excel/CSV questionnaire file for AI-powered answer generation.
Parses the file, detects the questionnaire format, and stores the
structured data in Redis (1h TTL). Returns the parsed questions
and metadata.'
operationId: upload_questionnaire_api_questionnaire_upload_post
parameters:
- name: review_token
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Review Token
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_upload_questionnaire_api_questionnaire_upload_post'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/questionnaire/generate:
post:
tags:
- questionnaire
summary: Generate Questionnaire Answers
description: 'Start AI answer generation for a parsed questionnaire.
Returns an SSE stream with progress, answer, complete, and error events.'
operationId: generate_questionnaire_answers_api_questionnaire_generate_post
parameters:
- name: review_token
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Review Token
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/api__routes__questionnaire_routes__GenerateRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/questionnaire/{questionnaire_id}/final:
post:
tags:
- questionnaire
summary: Submit Final Questionnaire
description: 'Upload the version you actually sent, so the next one is better.
This is the only place in the platform where work comes back. Everything else generates
a deliverable, emails it and forgets it. The edit a buyer makes before sending is a
domain expert telling us where the reasoning was wrong, about their own environment, as
a by-product of work they paid for.
Two kinds of thing come out of it and they are stored separately on purpose:
the buyer''s own material stays on their :QuestionnaireRecord, owner-scoped, and is
never read to answer anyone else''s questionnaire
the generalisable signal becomes an :AnswerCorrection holding the question, which
controls we cited, and whether a human accepted or contradicted us. It never holds
the buyer''s answer text.
A returned questionnaire is a written statement of a company''s real security posture.
The pattern of our own citation being rejected is ours to learn from. Their answer is
not, and the schema is what enforces that rather than a policy that can be forgotten.'
operationId: submit_final_questionnaire_api_questionnaire__questionnaire_id__final_post
parameters:
- name: questionnaire_id
in: path
required: true
schema:
type: string
title: Questionnaire Id
- name: review_token
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Review Token
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_submit_final_questionnaire_api_questionnaire__questionnaire_id__final_post'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/questionnaire/history:
get:
tags:
- questionnaire
summary: Get Questionnaire History
description: List user's recent questionnaires (last 30 days).
operationId: get_questionnaire_history_api_questionnaire_history_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
security:
- HTTPBearer: []
/api/questionnaire/{questionnaire_id}/status:
get:
tags:
- questionnaire
summary: Get Questionnaire Status
description: Check generation status for a questionnaire.
operationId: get_questionnaire_status_api_questionnaire__questionnaire_id__status_get
parameters:
- name: questionnaire_id
in: path
required: true
schema:
type: string
title: Questionnaire Id
- name: review_token
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Review Token
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/questionnaire/{questionnaire_id}/download:
get:
tags:
- questionnaire
summary: Download Questionnaire
description: Download the completed questionnaire as an Excel file.
operationId: download_questionnaire_api_questionnaire__questionnaire_id__download_get
parameters:
- name: questionnaire_id
in: path
required: true
schema:
type: string
title: Questionnaire Id
- name: review_token
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Review Token
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
api__routes__questionnaire_routes__GenerateRequest:
properties:
questionnaire_id:
type: string
title: Questionnaire Id
document_id:
anyOf:
- type: string
- type: 'null'
title: Document Id
type: object
required:
- questionnaire_id
title: GenerateRequest
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
Body_upload_questionnaire_api_questionnaire_upload_post:
properties:
file:
type: string
contentMediaType: application/octet-stream
title: File
type: object
required:
- file
title: Body_upload_questionnaire_api_questionnaire_upload_post
Body_submit_final_questionnaire_api_questionnaire__questionnaire_id__final_post:
properties:
file:
type: string
contentMediaType: application/octet-stream
title: File
type: object
required:
- file
title: Body_submit_final_questionnaire_api_questionnaire__questionnaire_id__final_post
securitySchemes:
HTTPBearer:
type: http
scheme: bearer