> For the complete documentation index, see [llms.txt](https://genaistack.aiplanet.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://genaistack.aiplanet.com/advanced-guide/openapi.md).

# GenAI Server API's Reference

Here are the API's for the core components of GenAI Stack Server.

## Session

{% openapi src="/files/IHmbPyDVM65cw34MJhot" path="/api/session" method="get" %}
[openapi.yaml](https://3806397856-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeycDZ2xq9bBJ7YOeSLfc%2Fuploads%2Fgit-blob-705b311d680369dc998b3ed6365449b1f7db2bb1%2Fopenapi.yaml?alt=media)
{% endopenapi %}

{% openapi src="/files/IHmbPyDVM65cw34MJhot" path="/api/session" method="post" %}
[openapi.yaml](https://3806397856-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeycDZ2xq9bBJ7YOeSLfc%2Fuploads%2Fgit-blob-705b311d680369dc998b3ed6365449b1f7db2bb1%2Fopenapi.yaml?alt=media)
{% endopenapi %}

{% openapi src="/files/IHmbPyDVM65cw34MJhot" path="/api/session/{session\_id}" method="get" %}
[openapi.yaml](https://3806397856-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeycDZ2xq9bBJ7YOeSLfc%2Fuploads%2Fgit-blob-705b311d680369dc998b3ed6365449b1f7db2bb1%2Fopenapi.yaml?alt=media)
{% endopenapi %}

{% openapi src="/files/IHmbPyDVM65cw34MJhot" path="/api/session/{session\_id}" method="delete" %}
[openapi.yaml](https://3806397856-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeycDZ2xq9bBJ7YOeSLfc%2Fuploads%2Fgit-blob-705b311d680369dc998b3ed6365449b1f7db2bb1%2Fopenapi.yaml?alt=media)
{% endopenapi %}

## ETL

{% openapi src="/files/IHmbPyDVM65cw34MJhot" path="/api/etl/submit-job" method="post" %}
[openapi.yaml](https://3806397856-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeycDZ2xq9bBJ7YOeSLfc%2Fuploads%2Fgit-blob-705b311d680369dc998b3ed6365449b1f7db2bb1%2Fopenapi.yaml?alt=media)
{% endopenapi %}

## Model

{% openapi src="/files/IHmbPyDVM65cw34MJhot" path="/api/model/predict" method="post" %}
[openapi.yaml](https://3806397856-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeycDZ2xq9bBJ7YOeSLfc%2Fuploads%2Fgit-blob-705b311d680369dc998b3ed6365449b1f7db2bb1%2Fopenapi.yaml?alt=media)
{% endopenapi %}

## Retriever

{% openapi src="/files/IHmbPyDVM65cw34MJhot" path="/api/retriever/retrieve" method="get" %}
[openapi.yaml](https://3806397856-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeycDZ2xq9bBJ7YOeSLfc%2Fuploads%2Fgit-blob-705b311d680369dc998b3ed6365449b1f7db2bb1%2Fopenapi.yaml?alt=media)
{% endopenapi %}

## Vectordb

{% openapi src="/files/IHmbPyDVM65cw34MJhot" path="/api/vectordb/add-documents" method="post" %}
[openapi.yaml](https://3806397856-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeycDZ2xq9bBJ7YOeSLfc%2Fuploads%2Fgit-blob-705b311d680369dc998b3ed6365449b1f7db2bb1%2Fopenapi.yaml?alt=media)
{% endopenapi %}

{% openapi src="/files/IHmbPyDVM65cw34MJhot" path="/api/vectordb/search" method="get" %}
[openapi.yaml](https://3806397856-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeycDZ2xq9bBJ7YOeSLfc%2Fuploads%2Fgit-blob-705b311d680369dc998b3ed6365449b1f7db2bb1%2Fopenapi.yaml?alt=media)
{% endopenapi %}
