Agent SetupCreate a vault workspacepost

Create a vault workspace

Creates a Vault. If teamId is omitted, creates a new team-backed Vault workspace for the authenticated self-service agent organization.

curl -X POST "https://public-api.textmine.com/v3/vaults" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (TextMine tm_ API key)" \
  -d '{
  "name": "Agent Vault",
  "description": "example_string",
  "teamId": 123
}'
{
  "id": 123,
  "name": "John Doe",
  "description": "example_string",
  "teamId": 123,
  "organizationId": 123,
  "documentCount": 10,
  "createdAt": "2024-12-25T10:00:00Z",
  "updatedAt": "2024-12-25T10:00:00Z"
}
POST
/v3/vaults
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (TextMine tm_ API key)
Bearer Tokenstring
Required

Bearer token (TextMine tm_ API key) - just enter the token, "Bearer" prefix will be added automatically

Content-Typestring
Required

The media type of the request body

Options: application/json
teamIdinteger

Optional. Omit for a new self-service agent to create a team-backed Vault workspace automatically.

Format: int64
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (TextMine tm_ API key). Authentication token required.

Body

application/json
namestring
Example:
Agent Vault
teamIdinteger

Optional. Omit for a new self-service agent to create a team-backed Vault workspace automatically.

Responses