GET /data/{id}

Retrieve data from the database using the unique identifier.

Path parameters

  • id string Required

    The unique identifier of the data.

Responses

  • 200 application/json

    Data found

    Hide response attributes Show response attributes object
    • id string
    • name string
    • value object
  • 404 application/json

    Data not found

    Hide response attribute Show response attribute object
    • error string
  • 500 application/json

    Internal server error

    Hide response attribute Show response attribute object
    • error string
GET /data/{id}
curl \
 --request GET 'https://api.kartsriv.com/v1/data/{id}'
Response examples (200)
{
  "id": "607f1f77bcf86cd799439011",
  "name": "user_info",
  "value": {
    "age": 25,
    "location": "NYC"
  }
}
Response examples (404)
{
  "error": "Data not found"
}
Response examples (500)
{
  "error": "Failed to retrieve data"
}