Onvo Documentation
APIs
Datasources
Get:Get Data Source by Id

Get data source by id

GET
/
api
/
datasources
/
{id}

Authorizations

x-api-key
string
headerrequired

Response

200 - application/json

The response is of type object.

{
    "id": "30f1b94c-a03d-41aa-bb2a-bc94890f1926",
    "created_at": "2024-01-17T16:31:06.014144+00:00",
    "last_updated_at": "2024-01-17T16:31:28.528+00:00",
    "title": "File test",
    "source": "file",
    "config": "{\"url\":\"http://localhost:54321/storage/v1/object/sign/data-sources/ee5b08c6-5167-4425-bbc3-a746fe4a7ead/datasource:30f1b94c-a03d-41aa-bb2a-bc94890f1926/Airbnb.csv?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJkYXRhLXNvdXJjZXMvZWU1YjA4YzYtNTE2Ny00NDI1LWJiYzMtYTc0NmZlNGE3ZWFkL2RhdGFzb3VyY2U6MzBmMWI5NGMtYTAzZC00MWFhLWJiMmEtYmM5NDg5MGYxOTI2L0FpcmJuYi5jc3YiLCJpYXQiOjE3MDU1MDkwNzgsImV4cCI6MTczNzA0NTA3OH0.kstAzDO6_pizKI8wQAvQkNCmHoVNzfiJjbcJtpHJ5vo\",\"filename\":\"Airbnb.csv\",\"type\":\"csv\"}",
    "columns": [
        {
            "title": "Date",
            "description": "The date in the format 'D-Mon'"
        },
        {
            "title": "Guest",
            "description": "The name of the guest"
        },
        {
            "title": "Phone number",
            "description": "The phone number of the guest"
        },
        {
            "title": "Total nights",
            "description": "The total number of nights stayed"
        },
        {
            "title": "Confirmed Amt",
            "description": "The confirmed amount in currency format (e.g., '3,880.00')"
        },
        {
            "title": "GST",
            "description": "The GST amount in currency format (e.g., '200.00')"
        },
        {
            "title": "Received by Bank",
            "description": "The amount received by the bank in currency format (e.g., '3,680.00')"
        }
    ],
    "parameters": "[]",
    "description": "",
    "team": "ee5b08c6-5167-4425-bbc3-a746fe4a7ead",
    "created_by": "5899f99d-a449-4bfa-8769-19c097aaf1f6",
    "last_updated_by": "5899f99d-a449-4bfa-8769-19c097aaf1f6",
    "size": 4,
    "sample_data": "[{\"Date\":\"1-Jul\",\"Guest\":\"Siddharth Manmdhan\",\"Phone number\":\"\",\"Total nights\":\"1\",\"Confirmed Amt\":\" \\t3,880.00\",\"GST\":\"200.00\",\"Received by Bank\":\" \\t3,680.00\"},{\"Date\":\"6-Jul\",\"Guest\":\"John Umman\",\"Phone number\":\"\",\"Total nights\":\"1\",\"Confirmed Amt\":\" \\t3,880.00\",\"GST\":\"200.00\",\"Received by Bank\":\" \\t3,680.00\"},{\"Date\":\"8-Jul\",\"Guest\":\"Irshad PP\",\"Phone number\":\"\",\"Total nights\":\"1\",\"Confirmed Amt\":\" \\t3,880.00\",\"GST\":\"200.00\",\"Received by Bank\":\" \\t3,680.00\"},{\"Date\":\"9-Jul\",\"Guest\":\"Avith M Lal\",\"Phone number\":\"\",\"Total nights\":\"1\",\"Confirmed Amt\":\" \\t3,317.40\",\"GST\":\"171.00\",\"Received by Bank\":\" \\t3,146.40\"},{\"Date\":\"11-Jul\",\"Guest\":\"Shams Nazar\",\"Phone number\":\"\",\"Total nights\":\"2\",\"Confirmed Amt\":\" \\t7,760.00\",\"GST\":\"400.00\",\"Received by Bank\":\" \\t7,360.00\"},{\"Date\":\"14-Jul\",\"Guest\":\"Kevin Thomas\",\"Phone number\":\"\",\"Total nights\":\"1\",\"Confirmed Amt\":\" \\t3,317.40\",\"GST\":\"171.00\",\"Received by Bank\":\" \\t3,146.40\"},{\"Date\":\"15-Jul\",\"Guest\":\"Kevin Thomas\",\"Phone number\":\"\",\"Total nights\":\"1\",\"Confirmed Amt\":\" \\t3,880.00\",\"GST\":\"200.00\",\"Received by Bank\":\" \\t3,680.00\"},{\"Date\":\"16-Jul\",\"Guest\":\"Anna Binu\",\"Phone number\":\"\",\"Total nights\":\"1\",\"Confirmed Amt\":\" \\t3,298.00\",\"GST\":\"170.00\",\"Received by Bank\":\" \\t3,128.00\"},{\"Date\":\"18-Jul\",\"Guest\":\"Faiza M\",\"Phone number\":\"\",\"Total nights\":\"2\",\"Confirmed Amt\":\" \\t7,760.00\",\"GST\":\"400.00\",\"Received by Bank\":\" \\t7,360.00\"},{\"Date\":\"22-Jul\",\"Guest\":\"Prabhath CA\",\"Phone number\":\"\",\"Total nights\":\"1\",\"Confirmed Amt\":\" \\t3,880.00\",\"GST\":\"200.00\",\"Received by Bank\":\" \\t3,680.00\"}]"
}