Skip to main content
POST
/
prompts
/
{slug}
/
publish
Publish a prompt version with a tag
curl --request POST \
  --url https://api.getbasalt.ai/prompts/{slug}/publish \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "newTag": "production",
  "version": "1.0.0",
  "tag": "latest"
}'
{
  "deploymentTag": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "label": "production"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

slug
string
required

The slug of the prompt to publish

Example:

"my-prompt-slug"

Body

application/json
newTag
string
required

The new tag to assign to the prompt version

Minimum length: 1
Example:

"production"

version
string

The version number of the prompt to publish

Example:

"1.0.0"

tag
string

The tag of the prompt version to publish

Example:

"latest"

Response

The deployment tag was successfully created or updated

deploymentTag
object
required

The deployment tag that was created or updated

Example:
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"label": "production"
}