GET
/
results
/
{result_id}
/
mappings
const headers = {'Content-Type': 'application/json', 'API-Key': '<lume_api_key>'};
const result_id = '<result_id>';

fetch(`https://api.lume.ai/results/${result_id}/mappings`, {
    method: 'GET',
    headers: headers,
})
.then(response => response.json())
.catch(err => console.error(err));
{
  "items": [
    {
        "index": 1,
        "source_record": {
            "first_name": "Jane",
            "last_name": "Doe"
        },
        "mapped_record": {
            "f_name": "Jane",
            "l_name": "Doe"
        },
        "message": "success",
        "spec": {
            "f_name": {
                "@sources": [
                    "first_name"
                ],
                "@default_values": []
            },
            "l_name": {
                "@sources": [
                    "last_name"
                ],
                "@default_values": []
            }
        }
    },
    {
      "index": 2,
      "source_record": {
          "first_name": "Jane",
          "last_name": "Doe"
      },
      "mapped_record": {
          "f_name": "Jane",
          "l_name": "Doe"
      },
      "message": "success",
      "spec": {
          "f_name": {
              "@sources": [
                  "first_name"
              ],
              "@default_values": []
          },
          "l_name": {
              "@sources": [
                  "last_name"
              ],
              "@default_values": []
          }
      }
    }
  ],
  "total": 2,
  "page": 1,
  "size": 50,
  "pages": 1
}

Gets the output mapped data for a job run result, called Mappings. Depending on the number of records, this query will be paginated.

Authorizations

lume-api-key
string
headerrequired

Path Parameters

result_id
string
required

Query Parameters

include_spec
boolean
default: true

Include the spec within each mapping

page
integer
default: 1

Page number

size
integer
default: 50

Page size

Response

200 - application/json
items
object[]
required
total
integer | null
required
page
integer | null
required
size
integer | null
required
pages
integer | null