curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/entities/batch' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"entities": [
{
"entity_type": "string",
"name": "string",
"properties": {}
}
]
}'
{
"created": 1,
"entities": [
{
"confidence": 1,
"created_at": "string",
"entity_type": "string",
"has_embedding": true,
"id": "string",
"name": "string",
"properties": {},
"updated_at": "string"
}
],
"errors": [
"string"
],
"failed": 1
}
Batch create entities
Batch create entities. Required scope: write
POST
/
api
/
v1
/
entities
/
batch
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/entities/batch' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"entities": [
{
"entity_type": "string",
"name": "string",
"properties": {}
}
]
}'
{
"created": 1,
"entities": [
{
"confidence": 1,
"created_at": "string",
"entity_type": "string",
"has_embedding": true,
"id": "string",
"name": "string",
"properties": {},
"updated_at": "string"
}
],
"errors": [
"string"
],
"failed": 1
}
Batch create entities.
Required scope:
write
Request body
BatchCreateEntitiesRequest
CreateEntityRequest[]
required
Response
BatchCreateEntitiesResponse
integer
required
EntityResponse[]
required
Show EntityResponse
Show EntityResponse
string[]
required
integer
required
Status codes
| Code | Meaning |
|---|---|
200 | Per-item results; failures reported individually |
400 | Batch exceeds max_batch_size |
401 | Unauthorized — missing or invalid credentials |
403 | Forbidden — the key/token lacks the required scope |
429 | Rate limited — see Retry-After / X-RateLimit-Reset |
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/entities/batch' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"entities": [
{
"entity_type": "string",
"name": "string",
"properties": {}
}
]
}'
{
"created": 1,
"entities": [
{
"confidence": 1,
"created_at": "string",
"entity_type": "string",
"has_embedding": true,
"id": "string",
"name": "string",
"properties": {},
"updated_at": "string"
}
],
"errors": [
"string"
],
"failed": 1
}