---
agentTools:
  projectIndex: https://pneumacare.readme.io/llms.txt
---

# List all queries

[block:callout]
{
  "type": "warning",
  "title": "This endpoint is authenticated by the secret API key",
  "body": ""
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "PneumaCare API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.pneumahealth.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "j72nw6niu527coanz7b8"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/telehealth/queries": {
      "get": {
        "summary": "List all queries",
        "description": "",
        "operationId": "get-all-queries",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"Queries retrieved successfully\",\n  \"data\": [\n    {\n      \"id\": \"zh5ohdgfwahvhp6\",\n      \"question\": \"What is the cause of back aches during pregnancy\",\n      \"answer\": null,\n      \"status\": \"pending\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"Abayomi\",\n        \"last_name\": \"Tesfaaye\",\n        \"email\": \"samabayomi301@gmail.com\"\n      },\n      \"answered_by\": null,\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-24T13:17:12.000Z\",\n      \"updated_at\": \"2021-11-24T13:17:12.000Z\"\n    },\n    {\n      \"id\": \"dvmnpo8br84ybdi\",\n      \"question\": \"How to solve headache faster?\",\n      \"answer\": \"calm and rest a little\",\n      \"status\": \"answered\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"Emmanuel\",\n        \"last_name\": \"Tobi\",\n        \"email\": \"emmanuel.a.oluwatobi@gmail.com\"\n      },\n      \"answered_by\": {\n        \"first_name\": \"Damilola-John\",\n        \"last_name\": \"Babalola\",\n        \"email\": \"johndamilola08@gmail.com\",\n        \"specialty\": \"Urology\",\n        \"gender\": \"male\",\n        \"bio\": \"I am a rising star and I love the way the world is making me shine\",\n        \"practice\": null\n      },\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-24T11:01:37.000Z\",\n      \"updated_at\": \"2021-11-24T11:02:16.000Z\"\n    },\n    {\n      \"id\": \"mxmt5ig2n15uwho\",\n      \"question\": \"Hello. I want a doctor.\",\n      \"answer\": \"Alright, sir.\",\n      \"status\": \"answered\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"Emma\",\n        \"last_name\": \"Tobi\",\n        \"email\": \"teamexceptos@gmail.com\"\n      },\n      \"answered_by\": {\n        \"first_name\": \"Damilola-John\",\n        \"last_name\": \"Babalola\",\n        \"email\": \"johndamilola08@gmail.com\",\n        \"specialty\": \"Urology\",\n        \"gender\": \"male\",\n        \"bio\": \"I am a rising star and I love the way the world is making me shine\",\n        \"practice\": null\n      },\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-22T18:41:14.000Z\",\n      \"updated_at\": \"2021-11-22T18:45:21.000Z\"\n    },\n    {\n      \"id\": \"73t8f9ewnj1frpc\",\n      \"question\": \"Here we go again.\",\n      \"answer\": \"Hello, xup?\",\n      \"status\": \"answered\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"Emmanuel\",\n        \"last_name\": \"Tobi\",\n        \"email\": \"emmanuel.a.oluwatobi@gmail.com\"\n      },\n      \"answered_by\": {\n        \"first_name\": \"Damilola-John\",\n        \"last_name\": \"Babalola\",\n        \"email\": \"johndamilola08@gmail.com\",\n        \"specialty\": \"Urology\",\n        \"gender\": \"male\",\n        \"bio\": \"I am a rising star and I love the way the world is making me shine\",\n        \"practice\": null\n      },\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-21T15:52:51.000Z\",\n      \"updated_at\": \"2021-11-21T15:54:21.000Z\"\n    },\n    {\n      \"id\": \"kpaiwfr5a9o60f9\",\n      \"question\": \"can't I get something to work with?\",\n      \"answer\": \"Hmmm, sorry.\",\n      \"status\": \"answered\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"Emmanuel\",\n        \"last_name\": \"Tobi\",\n        \"email\": \"emmanuel.a.oluwatobi@gmail.com\"\n      },\n      \"answered_by\": {\n        \"first_name\": \"Damilola-John\",\n        \"last_name\": \"Babalola\",\n        \"email\": \"johndamilola08@gmail.com\",\n        \"specialty\": \"Urology\",\n        \"gender\": \"male\",\n        \"bio\": \"I am a rising star and I love the way the world is making me shine\",\n        \"practice\": null\n      },\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-18T08:38:26.000Z\",\n      \"updated_at\": \"2021-11-18T08:39:36.000Z\"\n    },\n    {\n      \"id\": \"4ak3gj8grqgshry\",\n      \"question\": \"I am feeling too cold\",\n      \"answer\": \"Hey, what about now\",\n      \"status\": \"answered\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"Emmanuel\",\n        \"last_name\": \"Tobi\",\n        \"email\": \"emmanuel.a.oluwatobi@gmail.com\"\n      },\n      \"answered_by\": {\n        \"first_name\": \"Damilola-John\",\n        \"last_name\": \"Babalola\",\n        \"email\": \"johndamilola08@gmail.com\",\n        \"specialty\": \"Urology\",\n        \"gender\": \"male\",\n        \"bio\": \"I am a rising star and I love the way the world is making me shine\",\n        \"practice\": null\n      },\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-13T06:15:29.000Z\",\n      \"updated_at\": \"2021-11-15T16:23:01.000Z\"\n    },\n    {\n      \"id\": \"l5bie7uzr0u33t1\",\n      \"question\": \"My head aches after singing, what can be the cause?\",\n      \"answer\": \"Oh nope, could be the noise. try an ear bud to reduce the effect\",\n      \"status\": \"answered\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"Chikwe\",\n        \"last_name\": \"Ihekweazu\",\n        \"email\": \"ayodele+ichikwe@pneuma.care\"\n      },\n      \"answered_by\": {\n        \"first_name\": \"Damilola-John\",\n        \"last_name\": \"Babalola\",\n        \"email\": \"johndamilola08@gmail.com\",\n        \"specialty\": \"Urology\",\n        \"gender\": \"male\",\n        \"bio\": \"I am a rising star and I love the way the world is making me shine\",\n        \"practice\": null\n      },\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-07T13:13:20.000Z\",\n      \"updated_at\": \"2021-11-07T13:14:01.000Z\"\n    },\n    {\n      \"id\": \"5agv45s527imjrn\",\n      \"question\": \"what causes stroke\",\n      \"answer\": null,\n      \"status\": \"pending\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"m\",\n        \"last_name\": \"o\",\n        \"email\": \"modupe@pneuma.care\"\n      },\n      \"answered_by\": null,\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-05T10:01:27.000Z\",\n      \"updated_at\": \"2021-11-05T10:01:27.000Z\"\n    },\n    {\n      \"id\": \"6o4le1pw0iz5bxa\",\n      \"question\": \"Body temperature unnecessary warm\",\n      \"answer\": \"Ha, Sorry ooo.. Pele\",\n      \"status\": \"answered\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"Emmanuel\",\n        \"last_name\": \"Tobi\",\n        \"email\": \"emmanuel.a.oluwatobi@gmail.com\"\n      },\n      \"answered_by\": {\n        \"first_name\": \"Damilola-John\",\n        \"last_name\": \"Babalola\",\n        \"email\": \"johndamilola08@gmail.com\",\n        \"specialty\": \"Urology\",\n        \"gender\": \"male\",\n        \"bio\": \"I am a rising star and I love the way the world is making me shine\",\n        \"practice\": null\n      },\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-05T09:27:18.000Z\",\n      \"updated_at\": \"2021-11-05T09:27:57.000Z\"\n    },\n    {\n      \"id\": \"h9q2unuzrk5a9li\",\n      \"question\": \"I notice rash on my body. What can it be?\",\n      \"answer\": \"This can be a number of things, you don't have to be worried. \",\n      \"status\": \"answered\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"Ayodele\",\n        \"last_name\": \"Adeyemo\",\n        \"email\": \"ayodele+demo1@pneuma.care\"\n      },\n      \"answered_by\": {\n        \"first_name\": \"Damilola-John\",\n        \"last_name\": \"Babalola\",\n        \"email\": \"johndamilola08@gmail.com\",\n        \"specialty\": \"Urology\",\n        \"gender\": \"male\",\n        \"bio\": \"I am a rising star and I love the way the world is making me shine\",\n        \"practice\": null\n      },\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-04T11:29:34.000Z\",\n      \"updated_at\": \"2021-11-04T11:30:20.000Z\"\n    },\n    {\n      \"id\": \"rz8j8dq0bwwy2b0\",\n      \"question\": \"beta test\",\n      \"answer\": \"Tanks \",\n      \"status\": \"answered\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"hellod\",\n        \"last_name\": \"acccto\",\n        \"email\": \"elijardh@gmail.com\"\n      },\n      \"answered_by\": {\n        \"first_name\": \"Damilola-John\",\n        \"last_name\": \"Babalola\",\n        \"email\": \"johndamilola08@gmail.com\",\n        \"specialty\": \"Urology\",\n        \"gender\": \"male\",\n        \"bio\": \"I am a rising star and I love the way the world is making me shine\",\n        \"practice\": null\n      },\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-04T11:13:36.000Z\",\n      \"updated_at\": \"2021-11-04T11:30:26.000Z\"\n    },\n    {\n      \"id\": \"2ujx7k68fgn3seu\",\n      \"question\": \"test\",\n      \"answer\": \"Hey it works\",\n      \"status\": \"answered\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"hellod\",\n        \"last_name\": \"acccto\",\n        \"email\": \"elijardh@gmail.com\"\n      },\n      \"answered_by\": {\n        \"first_name\": \"Damilola-John\",\n        \"last_name\": \"Babalola\",\n        \"email\": \"johndamilola08@gmail.com\",\n        \"specialty\": \"Urology\",\n        \"gender\": \"male\",\n        \"bio\": \"I am a rising star and I love the way the world is making me shine\",\n        \"practice\": null\n      },\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-04T11:12:05.000Z\",\n      \"updated_at\": \"2021-11-04T11:12:43.000Z\"\n    },\n    {\n      \"id\": \"nser1h1ga6395qp\",\n      \"question\": \"my legs and arms are tingling.. what could be wrong?\",\n      \"answer\": \"You might need to do a check\",\n      \"status\": \"answered\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"Ayodele\",\n        \"last_name\": \"Adeyemo\",\n        \"email\": \"christad92@gmail.com\"\n      },\n      \"answered_by\": {\n        \"first_name\": \"Damilola-John\",\n        \"last_name\": \"Babalola\",\n        \"email\": \"johndamilola08@gmail.com\",\n        \"specialty\": \"Urology\",\n        \"gender\": \"male\",\n        \"bio\": \"I am a rising star and I love the way the world is making me shine\",\n        \"practice\": null\n      },\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-03T15:46:19.000Z\",\n      \"updated_at\": \"2021-11-03T22:27:25.000Z\"\n    },\n    {\n      \"id\": \"w2c057jvnqda2wy\",\n      \"question\": \"can I take vitamin c along with malaria medication?\",\n      \"answer\": null,\n      \"status\": \"pending\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"A\",\n        \"last_name\": \"O\",\n        \"email\": \"adeline.ashiedu@gmail.com\"\n      },\n      \"answered_by\": null,\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-03T07:23:16.000Z\",\n      \"updated_at\": \"2021-11-03T07:23:16.000Z\"\n    },\n    {\n      \"id\": \"oie2r9qxa7ugfx2\",\n      \"question\": \"wahala\",\n      \"answer\": \"for where?\",\n      \"status\": \"answered\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"hellod\",\n        \"last_name\": \"acccto\",\n        \"email\": \"elijardh@gmail.com\"\n      },\n      \"answered_by\": {\n        \"first_name\": \"Damilola-John\",\n        \"last_name\": \"Babalola\",\n        \"email\": \"johndamilola08@gmail.com\",\n        \"specialty\": \"Urology\",\n        \"gender\": \"male\",\n        \"bio\": \"I am a rising star and I love the way the world is making me shine\",\n        \"practice\": null\n      },\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-02T20:03:36.000Z\",\n      \"updated_at\": \"2021-11-02T20:03:57.000Z\"\n    },\n    {\n      \"id\": \"vlat5p1jp610bz6\",\n      \"question\": \"test 2\",\n      \"answer\": \"works\",\n      \"status\": \"answered\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"hellod\",\n        \"last_name\": \"acccto\",\n        \"email\": \"elijardh@gmail.com\"\n      },\n      \"answered_by\": {\n        \"first_name\": \"Damilola-John\",\n        \"last_name\": \"Babalola\",\n        \"email\": \"johndamilola08@gmail.com\",\n        \"specialty\": \"Urology\",\n        \"gender\": \"male\",\n        \"bio\": \"I am a rising star and I love the way the world is making me shine\",\n        \"practice\": null\n      },\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-02T19:59:26.000Z\",\n      \"updated_at\": \"2021-11-02T19:59:45.000Z\"\n    },\n    {\n      \"id\": \"1so7c4xgka2kq8g\",\n      \"question\": \"Test Question\",\n      \"answer\": \"works\",\n      \"status\": \"answered\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"hellod\",\n        \"last_name\": \"acccto\",\n        \"email\": \"elijardh@gmail.com\"\n      },\n      \"answered_by\": {\n        \"first_name\": \"Damilola-John\",\n        \"last_name\": \"Babalola\",\n        \"email\": \"johndamilola08@gmail.com\",\n        \"specialty\": \"Urology\",\n        \"gender\": \"male\",\n        \"bio\": \"I am a rising star and I love the way the world is making me shine\",\n        \"practice\": null\n      },\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-02T19:54:52.000Z\",\n      \"updated_at\": \"2021-11-02T19:55:34.000Z\"\n    },\n    {\n      \"id\": \"xg3ei9i74e8llin\",\n      \"question\": \"THis is a new request from the new integration. let's see if it works\",\n      \"answer\": \"Yea, it works, I love this!\",\n      \"status\": \"answered\",\n      \"integration\": \"axa1qk7kmsradh6\",\n      \"mode\": \"sandbox\",\n      \"user\": {\n        \"first_name\": \"Chikwe\",\n        \"last_name\": \"Ihekweazu\",\n        \"email\": \"ayodele+ichikwe@pneuma.care\"\n      },\n      \"answered_by\": {\n        \"first_name\": \"Damilola-John\",\n        \"last_name\": \"Babalola\",\n        \"email\": \"johndamilola08@gmail.com\",\n        \"specialty\": \"Urology\",\n        \"gender\": \"male\",\n        \"bio\": \"I am a rising star and I love the way the world is making me shine\",\n        \"practice\": null\n      },\n      \"currency\": \"ngn\",\n      \"price\": 20000,\n      \"billed\": true,\n      \"created_at\": \"2021-11-01T11:56:10.000Z\",\n      \"updated_at\": \"2021-11-01T11:59:11.000Z\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Queries retrieved successfully"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "zh5ohdgfwahvhp6"
                          },
                          "question": {
                            "type": "string",
                            "example": "What is the cause of back aches during pregnancy"
                          },
                          "answer": {},
                          "status": {
                            "type": "string",
                            "example": "pending"
                          },
                          "integration": {
                            "type": "string",
                            "example": "axa1qk7kmsradh6"
                          },
                          "mode": {
                            "type": "string",
                            "example": "sandbox"
                          },
                          "user": {
                            "type": "object",
                            "properties": {
                              "first_name": {
                                "type": "string",
                                "example": "Abayomi"
                              },
                              "last_name": {
                                "type": "string",
                                "example": "Tesfaaye"
                              },
                              "email": {
                                "type": "string",
                                "example": "samabayomi301@gmail.com"
                              }
                            }
                          },
                          "answered_by": {},
                          "currency": {
                            "type": "string",
                            "example": "ngn"
                          },
                          "price": {
                            "type": "integer",
                            "example": 20000,
                            "default": 0
                          },
                          "billed": {
                            "type": "boolean",
                            "example": true,
                            "default": true
                          },
                          "created_at": {
                            "type": "string",
                            "example": "2021-11-24T13:17:12.000Z"
                          },
                          "updated_at": {
                            "type": "string",
                            "example": "2021-11-24T13:17:12.000Z"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "61332d511b787e0026bea8d5:6133c60d4e40110033a622fb"
}
```