Raku Entities API

The entities API from Raku — 7 operation(s) for entities.

GitHub OpenAPI

Operations 11

POST /api/v1/entities Create Entity #
GET /api/v1/entities List Entities #
GET /api/v1/entities/{entity_id} Get Entity #
PUT /api/v1/entities/{entity_id} Update Entity #
DELETE /api/v1/entities/{entity_id} Delete Entity #
POST /api/v1/entities/{entity_id}/aliases Add Alias #
GET /api/v1/entities/{entity_id}/graph Get Entity Graph #
POST /api/v1/entities/extract Extract Entities #
POST /api/v1/relationships Create Relationship #
GET /api/v1/relationships List Relationships #
DELETE /api/v1/relationships/{relationship_id} Delete Relationship #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/raku-so:raku-so-entities-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

raku-so-entities-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Raku So Entities API
  version: 0.1.0
  description: 'Operations tagged entities across 2 of this provider''s published API definitions: openapi.json, raku-so-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Entities
paths:
  /api/v1/entities:
    post:
      tags:
      - Entities
      summary: Create Entity
      description: Create an entity manually.
      operationId: create_entity_api_v1_entities_post
      security:
      - HTTPBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntityCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Entities
      summary: List Entities
      description: List entities with pagination and optional type filter.
      operationId: list_entities_api_v1_entities_get
      security:
      - HTTPBearer: []
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 1
          default: 50
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: entity_type
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Entity Type
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/entities/{entity_id}:
    get:
      tags:
      - Entities
      summary: Get Entity
      description: Get a single entity by ID.
      operationId: get_entity_api_v1_entities__entity_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: entity_id
        in: path
        required: true
        schema:
          type: string
          title: Entity Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Entities
      summary: Update Entity
      description: Update an entity (partial).
      operationId: update_entity_api_v1_entities__entity_id__put
      security:
      - HTTPBearer: []
      parameters:
      - name: entity_id
        in: path
        required: true
        schema:
          type: string
          title: Entity Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntityUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Entities
      summary: Delete Entity
      description: Delete an entity (cascades to relationships and memory_entities).
      operationId: delete_entity_api_v1_entities__entity_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: entity_id
        in: path
        required: true
        schema:
          type: string
          title: Entity Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/entities/{entity_id}/aliases:
    post:
      tags:
      - Entities
      summary: Add Alias
      description: Add an alias to an entity. Idempotent.
      operationId: add_alias_api_v1_entities__entity_id__aliases_post
      security:
      - HTTPBearer: []
      parameters:
      - name: entity_id
        in: path
        required: true
        schema:
          type: string
          title: Entity Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AliasAddRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/entities/{entity_id}/graph:
    get:
      tags:
      - Entities
      summary: Get Entity Graph
      description: '1-hop neighbourhood: entity + relationships + neighbours.'
      operationId: get_entity_graph_api_v1_entities__entity_id__graph_get
      security:
      - HTTPBearer: []
      parameters:
      - name: entity_id
        in: path
        required: true
        schema:
          type: string
          title: Entity Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityGraphResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/entities/extract:
    post:
      tags:
      - Entities
      summary: Extract Entities
      description: Extract entities and relationships from text using GLiNER2.
      operationId: extract_entities_api_v1_entities_extract_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtractionRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtractionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/v1/relationships:
    post:
      tags:
      - Entities
      summary: Create Relationship
      description: Create a relationship between two existing entities.
      operationId: create_relationship_api_v1_relationships_post
      security:
      - HTTPBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RelationshipCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelationshipResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Entities
      summary: List Relationships
      description: List relationships with optional filters.
      operationId: list_relationships_api_v1_relationships_get
      security:
      - HTTPBearer: []
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 1
          default: 50
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: entity_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Entity Id
      - name: relationship_type
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Relationship Type
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelationshipListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/relationships/{relationship_id}:
    delete:
      tags:
      - Entities
      summary: Delete Relationship
      description: Delete a relationship.
      operationId: delete_relationship_api_v1_relationships__relationship_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: relationship_id
        in: path
        required: true
        schema:
          type: string
          title: Relationship Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ResolvedEntity:
      properties:
        id:
          type: string
          title: Id
        text:
          type: string
          title: Text
        entity_type:
          type: string
          title: Entity Type
        confidence:
          type: number
          title: Confidence
        is_new:
          type: boolean
          title: Is New
      type: object
      required:
      - id
      - text
      - entity_type
      - confidence
      - is_new
      title: ResolvedEntity
      description: Entity resolved against the entity table.
    EntityListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/EntityResponse'
          type: array
          title: Items
        total:
          type: integer
          title: Total
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
        has_more:
          type: boolean
          title: Has More
      type: object
      required:
      - items
      - total
      - limit
      - offset
      - has_more
      title: EntityListResponse
      description: Paginated entity list.
    RelationshipResponse:
      properties:
        id:
          type: string
          title: Id
        source_entity_id:
          type: string
          title: Source Entity Id
        target_entity_id:
          type: string
          title: Target Entity Id
        relationship_type:
          type: string
          title: Relationship Type
        confidence_score:
          anyOf:
          - type: number
          - type: 'null'
          title: Confidence Score
        created_at:
          type: string
          title: Created At
      type: object
      required:
      - id
      - source_entity_id
      - target_entity_id
      - relationship_type
      - confidence_score
      - created_at
      title: RelationshipResponse
      description: Relationship returned by the API.
    EntityGraphResponse:
      properties:
        entity:
          $ref: '#/components/schemas/EntityResponse'
        relationships:
          items:
            $ref: '#/components/schemas/RelationshipResponse'
          type: array
          title: Relationships
        neighbors:
          items:
            $ref: '#/components/schemas/EntityResponse'
          type: array
          title: Neighbors
      type: object
      required:
      - entity
      - relationships
      - neighbors
      title: EntityGraphResponse
      description: '1-hop neighbourhood: center entity + relationships + neighbours.'
    ResolvedRelationship:
      properties:
        id:
          type: string
          title: Id
        source_entity_id:
          type: string
          title: Source Entity Id
        target_entity_id:
          type: string
          title: Target Entity Id
        relationship_type:
          type: string
          title: Relationship Type
        confidence:
          type: number
          title: Confidence
      type: object
      required:
      - id
      - source_entity_id
      - target_entity_id
      - relationship_type
      - confidence
      title: ResolvedRelationship
      description: Relationship with resolved entity IDs.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    RelationshipCreate:
      properties:
        source_entity_id:
          type: string
          minLength: 1
          title: Source Entity Id
        target_entity_id:
          type: string
          minLength: 1
          title: Target Entity Id
        relationship_type:
          type: string
          maxLength: 200
          minLength: 1
          title: Relationship Type
        confidence_score:
          anyOf:
          - type: number
            maximum: 1.0
            minimum: 0.0
          - type: 'null'
          title: Confidence Score
      type: object
      required:
      - source_entity_id
      - target_entity_id
      - relationship_type
      title: RelationshipCreate
      description: Create a relationship between two entities.
    AliasAddRequest:
      properties:
        alias:
          type: string
          maxLength: 200
          minLength: 1
          title: Alias
      type: object
      required:
      - alias
      title: AliasAddRequest
      description: Add an alias to an entity.
    RelationshipListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/RelationshipResponse'
          type: array
          title: Items
        total:
          type: integer
          title: Total
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
        has_more:
          type: boolean
          title: Has More
      type: object
      required:
      - items
      - total
      - limit
      - offset
      - has_more
      title: RelationshipListResponse
      description: Paginated relationship list.
    EntityCreate:
      properties:
        name:
          type: string
          maxLength: 500
          minLength: 1
          title: Name
        entity_type:
          type: string
          maxLength: 100
          minLength: 1
          title: Entity Type
        aliases:
          items:
            type: string
          type: array
          maxItems: 20
          title: Aliases
        confidence_score:
          anyOf:
          - type: number
            maximum: 1.0
            minimum: 0.0
          - type: 'null'
          title: Confidence Score
      type: object
      required:
      - name
      - entity_type
      title: EntityCreate
      description: Create an entity manually.
    ExtractionResponse:
      properties:
        entities:
          items:
            $ref: '#/components/schemas/ResolvedEntity'
          type: array
          title: Entities
        relationships:
          items:
            $ref: '#/components/schemas/ResolvedRelationship'
          type: array
          title: Relationships
        entity_count:
          type: integer
          title: Entity Count
        relationship_count:
          type: integer
          title: Relationship Count
        new_entities:
          items:
            $ref: '#/components/schemas/ResolvedEntity'
          type: array
          title: New Entities
      type: object
      required:
      - entities
      - relationships
      - entity_count
      - relationship_count
      - new_entities
      title: ExtractionResponse
      description: Result of entity extraction + resolution.
    EntityUpdate:
      properties:
        name:
          anyOf:
          - type: string
            maxLength: 500
            minLength: 1
          - type: 'null'
          title: Name
        entity_type:
          anyOf:
          - type: string
            maxLength: 100
            minLength: 1
          - type: 'null'
          title: Entity Type
        confidence_score:
          anyOf:
          - type: number
            maximum: 1.0
            minimum: 0.0
          - type: 'null'
          title: Confidence Score
      type: object
      title: EntityUpdate
      description: Partial update for an entity.
    EntityResponse:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        entity_type:
          type: string
          title: Entity Type
        aliases:
          items:
            type: string
          type: array
          title: Aliases
        confidence_score:
          anyOf:
          - type: number
          - type: 'null'
          title: Confidence Score
        created_at:
          type: string
          title: Created At
        updated_at:
          type: string
          title: Updated At
      type: object
      required:
      - id
      - name
      - entity_type
      - aliases
      - confidence_score
      - created_at
      - updated_at
      title: EntityResponse
      description: Entity returned by the API. Never exposes tenant_id.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ExtractionRequest:
      properties:
        text:
          type: string
          maxLength: 50000
          minLength: 1
          title: Text
        memory_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Memory Id
          description: Link extracted entities to this memory
      type: object
      required:
      - text
      title: ExtractionRequest
      description: Extract entities and relationships from text using GLiNER2.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- openapi.json
- raku-so-openapi.json