Tags
Create tags.
Changed onCreates one or more new tags for document access control. Accepts an array of tag names, allowing bulk creation. After creating tags, assign them to documents and users to control access.
Tags are called labels in the API, so paths and fields use label (for example labelId and labels).
Notes: Requires Custom plan.
post/api/v1/projects/{projectId}/labels
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdinteger required
The unique identifier of the agent. You can find this in the CustomGPT dashboard or from the response of POST /api/v1/projects.
Request body
Example request
{
"names": [
"Pricing",
"FAQ"
]
}Response
Create (or restore) tags within a project
Example response
{
"status": "success",
"data": [
{
"id": 1,
"name": "Pricing"
}
]
}Changes
- info
endpoint added
- info