Sambodh IAS Assessments API
The assessments API from Sambodh IAS — 14 operation(s) for assessments.
The assessments API from Sambodh IAS — 14 operation(s) for assessments.
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/sambodh-ias-in:sambodh-ias-in-assessments-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: SambodhIAS v2 Assessments API
version: 2.0.0
tags:
- name: assessments
paths:
/api/assessments:
post:
tags:
- assessments
summary: Create Assessment
description: 'Create a new assessment — current_affairs, adaptive, or seed-based.
Success is recorded by each path''s ``assessment.created`` (with how long
the user waited); a request that ends without a set is recorded here as
``assessment.create_failed``, so slow and failed starts are both in
v2.product_events.'
operationId: create_assessment_api_assessments_post
parameters:
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAssessmentRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
get:
tags:
- assessments
summary: List Assessments
description: 'List assessments for the current user (P10 perf fix: one query instead of
one COUNT per assessment; paginated, newest first).
The wizard polls this after a create request the browser gave up on, to
pick up the set the server went on to make. (AssessmentQuestion has a
composite key and no ``id``; counting ``question_id`` is what works.)'
operationId: list_assessments_api_assessments_get
parameters:
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 50
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/assessments/ca_monthly_compilations:
get:
tags:
- assessments
summary: List Ca Monthly Compilations
description: 'List published Current Affairs monthly compilations (no auth required —
listing only, ids needed to start a compilation assessment).
Returns rows ordered newest first.'
operationId: list_ca_monthly_compilations_api_assessments_ca_monthly_compilations_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
/api/assessments/ca_featured_sets:
get:
tags:
- assessments
summary: List Ca Featured Sets
description: 'Published featured Current Affairs Prelims sets, newest first (no auth;
listing only). Each is a short free set on one recent event, started like
a monthly bank: POST /assessments with its compilation_id.'
operationId: list_ca_featured_sets_api_assessments_ca_featured_sets_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
/api/assessments/{assessment_id}/study-booklet:
get:
tags:
- assessments
summary: Get Study Booklet
description: 'Generate (or fetch cached) per-candidate PDF study booklet.
Returns the PDF inline with the right content-type so the browser can
render it or trigger a download via Content-Disposition.'
operationId: get_study_booklet_api_assessments__assessment_id__study_booklet_get
parameters:
- name: assessment_id
in: path
required: true
schema:
type: string
format: uuid
title: Assessment Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/assessments/{assessment_id}/revision-pack:
get:
tags:
- assessments
summary: Get Revision Pack
description: 'In-app revision deck — wrong questions + their concept cards, grouped
by syllabus tag. Lightweight JSON for the feedback page.'
operationId: get_revision_pack_api_assessments__assessment_id__revision_pack_get
parameters:
- name: assessment_id
in: path
required: true
schema:
type: string
format: uuid
title: Assessment Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/assessments/{assessment_id}:
get:
tags:
- assessments
summary: Get Assessment
description: Get assessment detail with questions, responses, and evaluation.
operationId: get_assessment_api_assessments__assessment_id__get
parameters:
- name: assessment_id
in: path
required: true
schema:
type: string
format: uuid
title: Assessment Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
- name: X-Lang
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Lang
- name: Accept-Language
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Accept-Language
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/assessments/{assessment_id}/evaluation-progress:
get:
tags:
- assessments
summary: Get Evaluation Progress
description: 'Live progress for the evaluation pipeline — polled by the feedback page
while `status != ''evaluated''` to render a real progress bar.
Returns `{step, total, label, updated_at}` or `{step: null}` if no in-flight
evaluation (either already done, or hasn''t started yet).'
operationId: get_evaluation_progress_api_assessments__assessment_id__evaluation_progress_get
parameters:
- name: assessment_id
in: path
required: true
schema:
type: string
format: uuid
title: Assessment Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/assessments/{assessment_id}/extend:
post:
tags:
- assessments
summary: Extend Assessment
description: Append 10 more questions to an in-progress assessment using the same generation config.
operationId: extend_assessment_api_assessments__assessment_id__extend_post
parameters:
- name: assessment_id
in: path
required: true
schema:
type: string
format: uuid
title: Assessment Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/assessments/{assessment_id}/coverage:
get:
tags:
- assessments
summary: Get Assessment Coverage
description: Get page-level coverage data for a specific assessment.
operationId: get_assessment_coverage_api_assessments__assessment_id__coverage_get
parameters:
- name: assessment_id
in: path
required: true
schema:
type: string
format: uuid
title: Assessment Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/assessments/{assessment_id}/source-page-info:
get:
tags:
- assessments
summary: Get Source Page Info
description: 'Metadata for the source-page viewer — document name, total pages,
section title, and the weak-chunk previews shown below the rendered image.'
operationId: get_source_page_info_api_assessments__assessment_id__source_page_info_get
parameters:
- name: assessment_id
in: path
required: true
schema:
type: string
format: uuid
title: Assessment Id
- name: document_id
in: query
required: true
schema:
type: string
format: uuid
title: Document Id
- name: page
in: query
required: true
schema:
type: integer
minimum: 1
title: Page
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/assessments/{assessment_id}/source-page-image:
get:
tags:
- assessments
summary: Get Source Page Image
description: 'Render a textbook page as PNG with any weak chunk(s) highlighted.
On-the-fly PyMuPDF rasterization — no pre-baked images. Browser caches via
HTTP so repeat clicks on the same page are near-instant.'
operationId: get_source_page_image_api_assessments__assessment_id__source_page_image_get
parameters:
- name: assessment_id
in: path
required: true
schema:
type: string
format: uuid
title: Assessment Id
- name: document_id
in: query
required: true
schema:
type: string
format: uuid
title: Document Id
- name: page
in: query
required: true
schema:
type: integer
minimum: 1
title: Page
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/assessments/cron-evaluate-stuck:
post:
tags:
- assessments
summary: Cron Evaluate Stuck
description: 'Manual / external trigger for the stuck-eval sweep (CRON_SECRET-auth,
mirrors the NewsPulse cron). The primary schedule is the in-process loop in
app/main.py; this endpoint is for on-demand runs (e.g. draining a backlog
right after deploy).'
operationId: cron_evaluate_stuck_api_assessments_cron_evaluate_stuck_post
parameters:
- name: x-cron-secret
in: header
required: true
schema:
type: string
title: X-Cron-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/assessments/{assessment_id}/submit:
post:
tags:
- assessments
summary: Submit Answers
description: Submit answers for an assessment.
operationId: submit_answers_api_assessments__assessment_id__submit_post
parameters:
- name: assessment_id
in: path
required: true
schema:
type: string
format: uuid
title: Assessment Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SubmitAnswersRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/assessments/{assessment_id}/answer:
post:
tags:
- assessments
summary: Save Single Answer
description: 'Persist a single answer immediately (auto-save).
Prevents data loss when a user closes the tab before pressing Submit.
Idempotent — (assessment_id, question_id) is unique; subsequent calls
upsert the stored answer.'
operationId: save_single_answer_api_assessments__assessment_id__answer_post
parameters:
- name: assessment_id
in: path
required: true
schema:
type: string
format: uuid
title: Assessment Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SaveAnswerRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
AnswerItem:
properties:
question_id:
type: string
title: Question Id
answer:
type: string
title: Answer
image_ids:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Image Ids
time_taken_ms:
anyOf:
- type: integer
- type: 'null'
title: Time Taken Ms
type: object
required:
- question_id
- answer
title: AnswerItem
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
SubmitAnswersRequest:
properties:
answers:
items:
$ref: '#/components/schemas/AnswerItem'
type: array
title: Answers
type: object
required:
- answers
title: SubmitAnswersRequest
SaveAnswerRequest:
properties:
question_id:
type: string
title: Question Id
answer:
type: string
title: Answer
image_ids:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Image Ids
time_taken_ms:
anyOf:
- type: integer
- type: 'null'
title: Time Taken Ms
type: object
required:
- question_id
- answer
title: SaveAnswerRequest
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
CreateAssessmentRequest:
properties:
subject:
type: string
title: Subject
topic:
anyOf:
- type: string
- type: 'null'
title: Topic
num_questions:
type: integer
title: Num Questions
default: 10
difficulty:
type: string
title: Difficulty
default: medium
assessment_type:
type: string
title: Assessment Type
default: mcq
is_adaptive:
type: boolean
title: Is Adaptive
default: false
subtopic:
anyOf:
- type: string
- type: 'null'
title: Subtopic
include_pyq:
type: boolean
title: Include Pyq
default: false
window_mode:
anyOf:
- type: string
- type: 'null'
title: Window Mode
window_value:
anyOf:
- type: string
- type: 'null'
title: Window Value
gs_paper:
anyOf:
- type: string
- type: 'null'
title: Gs Paper
compilation_id:
anyOf:
- type: string
- type: 'null'
title: Compilation Id
word_limit:
anyOf:
- type: integer
- type: 'null'
title: Word Limit
include_news_enrichment:
type: boolean
title: Include News Enrichment
default: true
document_id:
anyOf:
- type: string
- type: 'null'
title: Document Id
type: object
required:
- subject
title: CreateAssessmentRequest