Entries

The entries API lets you retrieve and filter all entries submitted by agents in your organization.

Get Entries

GET https://api.developer.databeaver.co/v1/entries

Returns a list of all entries in your organisation.

Query Parameters

Headers

{
    "success": true,
    "data": [
        {
            "id": "5efdd95bed83211b2d205139",
            "status": "accepted",
            "dispatch": "5efdd474ea543b18eb4b0b4e",
            "form": "5ef9cef14ba08a2aac9d0a6c",
            "project": "5efd9b5cda30d50b26c49604",
            "agent": "5efdc8210f524412fd1a43f5",
            "location": {
                "address": "11b Oduduwa Cres, Ikeja GRA, Ikeja, Nigeria",
                "country": "NIGERIA",
                "state": "LAGOS",
                "lga": "Ikeja",
                "city": "Ikeja GRA",
                "coordinates": {
                    "longitude": 3.316928544149041,
                    "lattitude": 3.316928544149041
                }
            },
            "answers": [
                {
                    "type": "singleChoice",
                    "question": "What is your Gender?",
                    "answer": "male"
                },
                {
                    "type": "singleChoice",
                    "question": "Do you like animals?",
                    "answer": "yes"
                },
                {
                    "type": "multiChoice",
                    "question": "Select the pets you have",
                    "answer": ['dogs', 'cats']
                }
            ],
            "duration": 10,
            "createdAt": "2020-07-02T12:55:54.605Z",
            "updatedAt": "2020-07-02T15:55:54.605Z"
        },
        ...
    ],
    "_metadata": {
        "total": 100000,
        "perPage": 60,
        "pageCount": 1667,
        "pageLinks": {
            "current": "https://api.databeaver.co/v1/entries?dispatch=5efdd474ea543b18eb4b0b4e&page=10&perPage=60",
            "next": "https://api.databeaver.co/v1/entries?dispatch=5efdd474ea543b18eb4b0b4e&page=11&perPage=60",
            "previous": "https://api.databeaver.co/v1/entries?dispatch=5efdd474ea543b18eb4b0b4e&page=9&perPage=60"
        }
    }
}

Get Entry by Id

GET https://api.developer.databeaver.co/v1/entries/:id

Returns a single entry.

Path Parameters

Headers

{
    "success": true,
    "data": {
        "id": "5efdd95bed83211b2d205139",
        "status": "accepted",
        "dispatch": {
            "id": "5efdd474ea543b18eb4b0b4e",
            "dispatchType": "basic",
            "status": "dispatched",
            "name": "Test Dispatch",
            "totalExpectedEntries": 150000,
            "createdAt": "2020-07-02T12:34:58.718Z",
            "updatedAt": "2020-07-02T12:34:58.718Z"
        },
        "form": {
            "id": "5ef9cef14ba08a2aac9d0a6c",
            "dispatched": true,
            "status": "active",
            "name": "Test Form",
            "reason": "Test",
            "createdAt": "2020-06-29T11:22:24.849Z",
            "updatedAt": "2020-06-29T11:22:24.849Z"
        },
        "project": {
            "id": "5efd9b5cda30d50b26c49604",
            "name": "Test Project",
            "modifiedBy": "5ef9ceb44ba08a2aac99fd2b",
            "createdAt": "2020-07-02T08:31:24.013Z",
            "updatedAt": "2020-07-02T08:31:24.013Z"
        },
        "agent": {
            "id": "5efdc8210f524412fd1a43de",
            "status": "active",
            "firstName": "Test",
            "lastName": "Agent",
            "email": "test@databeaver.co",
            "phone": "08000000000",
            "location": [
                {
                    "country": "Nigeria",
                    "zone": "South West",
                    "state": "Lagos",
                    "city": "Lagos"
                }
            ],
            "createdAt": "2020-07-02T11:42:24.861Z",
            "updatedAt": "2020-07-02T11:42:24.861Z"
        },
        "location": {
            "address": "11b Oduduwa Cres, Ikeja GRA, Ikeja, Nigeria",
            "country": "NIGERIA",
            "state": "LAGOS",
            "lga": "Ikeja",
            "city": "Ikeja GRA",
            "coordinates": {
                "longitude": 3.316928544149041,
                "lattitude": 3.316928544149041
            }
        },
        "answers": [
            {
                "type": "singleChoice",
                "question": "What is your Gender?",
                "answer": "male"
            },
            {
                "type": "singleChoice",
                "question": "Do you like animals?",
                "answer": "yes"
            },
            {
                "type": "multiChoice",
                "question": "Select the pets you have",
                "answer": ['dogs', 'cats']
            }
        ],
        "duration": 10,
        "createdAt": "2020-07-02T12:55:54.605Z",
        "updatedAt": "2020-07-02T12:55:54.605Z"
    }
}

Last updated