HydraCore
API by router

Entity store

Internal List Definitions

GET
/internal/v1/instances/{instance_id}/entity-definitions

Path Parameters

instance_idInstance Id
Formatuuid

Response Body

curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/entity-definitions"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Internal Get Definition

GET
/internal/v1/instances/{instance_id}/entity-definitions/{slug}

Path Parameters

instance_idInstance Id
Formatuuid
slugSlug

Response Body

curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/entity-definitions/string"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Internal Kv Get

GET
/internal/v1/instances/{instance_id}/entity-kv

Path Parameters

instance_idInstance Id
Formatuuid

Query Parameters

customer_idCustomer Id
Formatuuid
namespaceNamespace
keyKey

Response Body

curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/entity-kv?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&namespace=string&key=string"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Internal Kv Delete

DELETE
/internal/v1/instances/{instance_id}/entity-kv

Path Parameters

instance_idInstance Id
Formatuuid

Query Parameters

customer_idCustomer Id
Formatuuid
namespaceNamespace
keyKey

Response Body

curl -X DELETE "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/entity-kv?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&namespace=string&key=string"
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Internal Kv Set

PUT
/internal/v1/instances/{instance_id}/entity-kv

Path Parameters

instance_idInstance Id
Formatuuid
customer_idCustomer Id
Formatuuid
expires_at?Expires At
keyKey
Length1 <= length <= 255
namespaceNamespace
Length1 <= length <= 100
valueValue

Empty Object

Response Body

curl -X PUT "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/entity-kv" \  -H "Content-Type: application/json" \  -d '{    "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",    "key": "string",    "namespace": "string",    "value": {}  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Internal Kv Batch Set

POST
/internal/v1/instances/{instance_id}/entity-kv/batch

Path Parameters

instance_idInstance Id
Formatuuid
customer_idCustomer Id
Formatuuid
entriesEntries

List of {key, value, expires_at?}

namespaceNamespace
Length1 <= length <= 100

Response Body

curl -X POST "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/entity-kv/batch" \  -H "Content-Type: application/json" \  -d '{    "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",    "entries": [      {}    ],    "namespace": "string"  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Internal Kv List

GET
/internal/v1/instances/{instance_id}/entity-kv/list

Path Parameters

instance_idInstance Id
Formatuuid

Query Parameters

customer_idCustomer Id
Formatuuid
namespaceNamespace

Response Body

curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/entity-kv/list?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&namespace=string"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Internal List Records

GET
/internal/v1/instances/{instance_id}/entity-records

Path Parameters

instance_idInstance Id
Formatuuid

Query Parameters

customer_idCustomer Id
Formatuuid
definition_slug?Definition Slug
definition_id?Definition Id
status?Status
tag?Tag
search?Search

Full-text search via tsvector (indexed, requires searchable_fields on definition)

limit?Limit
Default50
Range1 <= value <= 200
offset?Offset
Default0
Range0 <= value

Response Body

curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/entity-records?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&definition_slug=string&definition_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&status=string&tag=string&search=string&limit=50&offset=0"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Internal Create Record

POST
/internal/v1/instances/{instance_id}/entity-records

Path Parameters

instance_idInstance Id
Formatuuid
created_by?Created By
customer_idCustomer Id
Formatuuid
data?Data

Empty Object

definition_id?Definition Id
definition_slug?Definition Slug
tags?Tags

Response Body

curl -X POST "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/entity-records" \  -H "Content-Type: application/json" \  -d '{    "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e"  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Internal Get Record

GET
/internal/v1/instances/{instance_id}/entity-records/{record_id}

Path Parameters

instance_idInstance Id
Formatuuid
record_idRecord Id
Formatuuid

Response Body

curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/entity-records/497f6eca-6276-4993-bfeb-53cbbbba6f08"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Internal Update Record

PATCH
/internal/v1/instances/{instance_id}/entity-records/{record_id}

Path Parameters

instance_idInstance Id
Formatuuid
record_idRecord Id
Formatuuid
data?Data
status?Status
tags?Tags

Response Body

curl -X PATCH "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/entity-records/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Internal Delete Record

DELETE
/internal/v1/instances/{instance_id}/entity-records/{record_id}

Path Parameters

instance_idInstance Id
Formatuuid
record_idRecord Id
Formatuuid

Response Body

curl -X DELETE "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/entity-records/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Internal List Relationships

GET
/internal/v1/instances/{instance_id}/entity-relationships

Path Parameters

instance_idInstance Id
Formatuuid

Query Parameters

record_idRecord Id

Find relationships for this record

Formatuuid
relationship_type?Relationship Type
direction?Direction
Default"both"
Match^(from|to|both)$

Response Body

curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/entity-relationships?record_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&relationship_type=string&direction=both"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Internal Create Relationship

POST
/internal/v1/instances/{instance_id}/entity-relationships

Path Parameters

instance_idInstance Id
Formatuuid
from_record_idFrom Record Id
Formatuuid
metadata?Metadata
relationship_typeRelationship Type
Length1 <= length <= 50
to_record_idTo Record Id
Formatuuid

Response Body

curl -X POST "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/entity-relationships" \  -H "Content-Type: application/json" \  -d '{    "from_record_id": "970e0aa8-b390-4ddc-afe1-fb4fc01a08b0",    "relationship_type": "string",    "to_record_id": "248de304-16b0-46af-b270-faee1be109a5"  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Internal Delete Relationship

DELETE
/internal/v1/instances/{instance_id}/entity-relationships/{relationship_id}

Path Parameters

instance_idInstance Id
Formatuuid
relationship_idRelationship Id
Formatuuid

Response Body

curl -X DELETE "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/entity-relationships/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Tenant List Definitions

GET
/v1/entity-definitions
AuthorizationBearer <token>

In: header

Header Parameters

X-Api-Key?X-Api-Key

Response Body

curl -X GET "https://loading/v1/entity-definitions" \  -H "X-Api-Key: string"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Tenant Create Definition

POST
/v1/entity-definitions
AuthorizationBearer <token>

In: header

Header Parameters

X-Api-Key?X-Api-Key
color?Color
description?Description
display_nameDisplay Name
Length1 <= length <= 200
field_sensitivity?Field Sensitivity

field_name → standard|sensitive|restricted

icon?Icon
schema?Schema
searchable_fields?Searchable Fields
slugSlug
Match^[a-z][a-z0-9_]*$
Length1 <= length <= 100

Response Body

curl -X POST "https://loading/v1/entity-definitions" \  -H "X-Api-Key: string" \  -H "Content-Type: application/json" \  -d '{    "display_name": "string",    "slug": "string"  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Tenant Update Definition

PATCH
/v1/entity-definitions/{definition_id}
AuthorizationBearer <token>

In: header

Path Parameters

definition_idDefinition Id
Formatuuid

Header Parameters

X-Api-Key?X-Api-Key
color?Color
description?Description
display_name?Display Name
field_sensitivity?Field Sensitivity

field_name → standard|sensitive|restricted

icon?Icon
schema?Schema
searchable_fields?Searchable Fields

Response Body

curl -X PATCH "https://loading/v1/entity-definitions/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "X-Api-Key: string" \  -H "Content-Type: application/json" \  -d '{}'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Tenant Delete Definition

DELETE
/v1/entity-definitions/{definition_id}
AuthorizationBearer <token>

In: header

Path Parameters

definition_idDefinition Id
Formatuuid

Header Parameters

X-Api-Key?X-Api-Key

Response Body

curl -X DELETE "https://loading/v1/entity-definitions/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "X-Api-Key: string"
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Tenant List Kv

GET
/v1/entity-kv
AuthorizationBearer <token>

In: header

Query Parameters

customer_idCustomer Id
Formatuuid
namespace?Namespace

Header Parameters

X-Api-Key?X-Api-Key

Response Body

curl -X GET "https://loading/v1/entity-kv?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&namespace=string" \  -H "X-Api-Key: string"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Tenant List Records

GET
/v1/entity-records
AuthorizationBearer <token>

In: header

Query Parameters

customer_id?Customer Id
definition_id?Definition Id
status?Status
limit?Limit
Default50
Range1 <= value <= 200
offset?Offset
Default0
Range0 <= value

Header Parameters

X-Api-Key?X-Api-Key

Response Body

curl -X GET "https://loading/v1/entity-records?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&definition_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&status=string&limit=50&offset=0" \  -H "X-Api-Key: string"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}