LangLion Developer Wiki

⚠️ APIv2 is legacy

APIv2 is considered legacy and is no longer recommended for new integrations.

We strongly encourage you to use APIv4 for all new integrations and to migrate existing integrations where possible.

Please refer to our latest APIv4 documentation for up-to-date information and integration guidelines:

Click here to view the APIv4 example documentation - your own documentation is at https://[your-instance].langlion.com/api/v4/docs

Structure of the response in case of an error:

1{
2   "error": {
3       "code": "accessDenied",
4       "message": "Access denied"
5   }
6}
  • code: string - text identifier of the error
  • message: string - description of the error, used for reporting only; the user should not see it (e.g. in an error message)