About this endpoint
What it does
Generates a formatted citation for a source in one of the supported styles: APA, MLA, or Chicago. You send the source details in the request body and receive a JSON object containing the citation text and the tool name.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | No | Source URL. |
| year | String | No | Publication year. Accepts a string or number. |
| style | ENUM | Yes | Citation style. Allowed values: apa, mla, chicago. |
| title | String | Yes | Source title. |
| authors | String | Yes | Author name(s). |
| siteOrPublisher | String | No | Site or publisher name. |
Response
Returns a JSON object with required tool and result string fields. result contains the formatted citation, and tool identifies the tool that produced the response.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| tool | String | Yes | Name of the tool that produced the response. |
| result | String | Yes | The formatted citation. |



