Get All Workers

Endpoint: /workers/all

Description: Retrieve all workers for the user.

Access Required: workers.read

Request:

  • Method: GET

  • URL: https://api.neuron.expert/public/workers/all

  • Headers: - X-Apikey: your_api_key

Response:

  • Status 200: List of all workers in JSON format. ```json [

    {

    “worker_id”: 1, “name”: “Worker Name 1”

    }, {

    “worker_id”: 2, “name”: “Worker Name 2”

    }

  • Status 403: Insufficient scope. ```json {

    “detail”: “Insufficient scope”

  • Status 404: Workers not found. ```json {

    “detail”: “Workers not found”

Example:

`bash curl -X GET "https://api.neuron.expert/public/workers/all" -H "X-Apikey: your_api_key" `