Generate Citation
Generate a properly formatted citation from source data.Authentication is optional. Authenticated users can save citations to their history.
POST /api/citations/generate
Request Parameters
Type of source to cite. Options:
bookarticlewebsitejournalnewspapervideopodcast
Citation format style. Options:
MLA- Modern Language AssociationAPA- American Psychological AssociationChicago- Chicago Manual of StyleHarvard- Harvard referencing system
Source information fields. Required fields vary by citation type.
Response
The formatted citation string
Whether the citation was saved to user’s history
Unique identifier for the saved citation (only if saved is true)
Complete database record (only if saved is true)
Error Responses
Get Citation History
Retrieve all saved citations for the authenticated user.GET /api/citations/history
Query Parameters
Filter by citation style (MLA, APA, Chicago, Harvard)
Filter by citation type (book, article, website, etc.)
Number of results to return. Default: 50
Number of results to skip (for pagination). Default: 0
Response
Array of saved citations
Total count of citations
Limit applied
Offset applied
Get Citation by ID
Retrieve a specific citation.GET /api/citations/:id
Path Parameters
The unique identifier of the citation
Response
Returns a single citation object with the same structure as the history endpoint.Error Responses
Update Citation
Update a saved citation. Automatically regenerates the formatted citation if source data changes.PUT /api/citations/:id
Path Parameters
The unique identifier of the citation
Request Parameters
Updated citation type
Updated citation style
Updated source data
Response
Returns the updated citation object.Delete Citation
Delete a saved citation.DELETE /api/citations/:id
Path Parameters
The unique identifier of the citation
Response
Create Bibliography Project
Create a new bibliography project to organize multiple citations.POST /api/citations/projects
Request Parameters
Name of the bibliography project
Optional description of the project
Default citation style for the project. Default:
"MLA"Response
Returns the created project object:Project ID
Owner’s user ID
Project name
Project description
Default citation style
ISO 8601 timestamp
Error Responses
Get Projects
Retrieve all bibliography projects for the authenticated user.GET /api/citations/projects/list
Response
Returns an array of project objects, sorted by creation date (newest first).Export Bibliography
Export all citations in a project as a formatted bibliography.GET /api/citations/projects/:projectId/export
Path Parameters
The unique identifier of the project
Query Parameters
Export format. Options:
text(default): Plain text bibliography with one citation per linejson: JSON array of citation objectsbibtex: BibTeX format for LaTeX documents