Skip to main content
GET
/
mappings
/
{mapping_id}
/
sample
Get mapping preview
curl --request GET \
  --url https://api-dev.narrative.io/mappings/{mapping_id}/sample \
  --header 'Authorization: Bearer <token>'
{
  "records": [
    {
      "input": {
        "idType": "idType1",
        "idValue": "idValue1"
      },
      "output": {
        "unique_id_f7635d42_51ce_4535_ae8b_9ac64df85501": {
          "type": "idType1",
          "value": "idValue1"
        }
      }
    },
    {
      "input": {
        "idType": "idType2",
        "idValue": "idValue2"
      },
      "output": {
        "unique_id_f7635d42_51ce_4535_ae8b_9ac64df85501": {
          "type": "idType2",
          "value": "idValue2"
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

mapping_id
string<uuid>
required

Unique identifier for a mapping.

Query Parameters

size
integer

The number of rows to sample from the dataset.

Required range: x <= 1000

Response

200 - application/json

OK

records
object[]