Skip to main content
POST
/
local-folders
/
preview-db
Preview database content
curl --request POST \
  --url https://apigcp.trynia.ai/v2/local-folders/preview-db \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "database": {
    "filename": "<string>",
    "content": "aSDinaTvuI8gbWludGxpZnk="
  }
}
'
{
  "tables": [
    {
      "name": "<string>",
      "row_count": 123,
      "columns": [
        "<string>"
      ]
    }
  ],
  "sample_content": [
    "<string>"
  ],
  "detected_type": "<string>"
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
database
object
required

Response

Database preview

tables
object[]
sample_content
string[]
detected_type
string

Auto-detected database type (imessage, whatsapp, generic)