Business RecordsCreate a business recordpost

Create a business record

Creates a structured business record with optional field values and evidence.

curl -X POST "https://api.textmine.com/v3/records" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (`tm_<key>`)" \
  -d '{
  "teamId": 321,
  "vaultId": 12345,
  "schemaVersionId": 4001,
  "recordTypeId": 5001,
  "canonicalName": "Acme Ltd",
  "externalKey": "supplier:acme-ltd",
  "status": "active",
  "confidence": 0.91,
  "fieldValues": [
    {
      "fieldId": 9001,
      "value": "England and Wales",
      "confidence": 0.94,
      "status": "validated",
      "sourceType": "document",
      "sourceId": "67890"
    }
  ]
}'
{
  "id": 6001,
  "teamId": 321,
  "vaultId": 12345,
  "schemaVersionId": 4001,
  "recordTypeId": 5001,
  "canonicalName": "Acme Ltd",
  "status": "active",
  "confidence": 0.91,
  "fieldValues": []
}
POST
/v3/records
POST
Base URLstring

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

Bearer Token (`tm_<key>`)
Bearer Tokenstring
Required

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.
Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (tm_<key>). Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Body

application/json
vaultIdinteger
Example:
12345
externalKeystring
Example:
supplier:acme-ltd
statusstring
Example:
active
confidencenumber
Example:
0.91
fieldValuesarray
evidencearray

Responses