> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Embedding

> This endpoint creates a new embedding

### Body

<ParamField body="id" type="string">
  This is the ID of the embedding to be created.
</ParamField>

<ParamField body="knowledge" type="string">
  This is the text of the embedding.
</ParamField>

<ParamField body="metadata" type="string">
  This is the metadata of the embedding.
</ParamField>

<ParamField body="user_id" type="string">
  This is the user id of the embedding.
</ParamField>

### Response

<ResponseField name="id" type="string">
  This is the ID of the embedding.
</ResponseField>

<ResponseField name="knowledge" type="string">
  This is the text of the embedding.
</ResponseField>

<ResponseField body="metadata" type="string">
  This is the metadata of the embedding.
</ResponseField>

<ResponseField name="user_id" type="string">
  This is the user id of the embedding.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --location --request POST 'https://api.stateset.com/v1/embeddings' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Token <token>' \
  --data-raw '{
      "id": "em_1NXWPnCo6bFb1KQto6C8OWvE"
  }'
  ```
</RequestExample>
