Atoma Docs
  • Developers
  • Introduction
    • Atoma Basics
    • Compute Layer
    • Trust and Privacy
  • Developers
    • Atoma architecture overview
    • Atoma smart contract
      • Atoma architecture
      • Interact with the Atoma smart contract
      • Current available tasks on Atoma
  • Node Operators
    • Atoma node
      • Install Sui cli
      • Install CUDA
      • Install docker
      • Firewall permissions
      • HuggingFace authentication
      • Atoma node deployment
      • Atoma node daemon
        • Node subscriptions
        • Task Management
        • Stack operations
        • Attestation/Dispute management
        • Claimed Stacks management
        • Submit new node registration transaction
        • Task subscriptions
        • Submit Stack settlements and attestations
        • Claim Stacks
Powered by GitBook
On this page
  1. Node Operators
  2. Atoma node
  3. Atoma node daemon

Task Management

Task Management

Get All Tasks

GET /tasks

Returns all available tasks from the state manager.

Response Status Codes

  • 200 OK: Successfully retrieved tasks

  • 500 Internal Server Error: Failed to retrieve tasks from state manager

Response

Returns an array of Task objects:

[
  {
    "task_small_id": 1,
    "task_id": "task-123",
    "role": 1,
    "model_name": "gpt-4",
    "is_deprecated": false,
    "valid_until_epoch": null,
    "deprecated_at_epoch": null,
    "security_level": 1,
    "minimum_reputation_score": 100
  }
]

Response Fields

  • task_small_id (integer): Unique small integer identifier for the task

  • task_id (string): Unique string identifier for the task

  • role (integer): Role associated with the task

  • model_name (string, optional): Name of the model used for the task

  • is_deprecated (boolean): Whether the task is deprecated

  • valid_until_epoch (integer, optional): Epoch timestamp until which the task is valid

  • deprecated_at_epoch (integer, optional): Epoch timestamp when the task was deprecated

  • security_level (integer): Security level of the task

  • minimum_reputation_score (integer, optional): Minimum reputation score required for the task

Example Error Response

{
  "error": "Failed to get all tasks"
}

Notes

  • This endpoint retrieves all tasks regardless of their deprecation status

  • Tasks are returned in no particular order

  • Null values for optional fields indicate that they are not set

PreviousNode subscriptionsNextStack operations

Last updated 6 months ago