Skip to content
dimmiDocs

More

Look up records of a migration

Says where each record named by its id in the other tool stands: applied with the dimmi id it became, deferred, failed, unsupported, or missing when the migration never received it. Use it to check a sample after a run. Returns one entry per source id, in the order asked.

POST/api/v1/migrations/{migration}/lookups

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the settings:write ability

Path parameters

migrationstringrequired

The migration (mig_...) the records belong to. Such as mig_01jc8q3x7m2n4p5r6s7t8v9w0y.

Body

application/json
kindstringrequired

The kind of the records, as the import format names it: contact, conversation, article and so on. Such as contact.

Available options:teammateteamtagattribute_definitioncompanycontactcontact_noteticket_typehelp_centercollectionarticlesnippetsaved_replyscheduleworkflowconversationticket

source_idsstring[] | nullrequired

Up to 100 ids the records had in the other tool. Such as ["6512ab","6512ac"].

Minimum items: 1 · Maximum items: 100

Response 200

OK
dataobject[] | nullrequired

The items of this page, as a list; empty when nothing matches.

Show child attributes
idstring | nullrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

source_idstringrequired

The record's id in the other tool, as asked.

statusstringrequired

applied, deferred, failed or unsupported as the ledger has it, or missing when the migration never received it.

Available options:applieddeferredfailedunsupportedmissing

linksobject

Addresses of related pages by name, such as next; left out when there are none.

metaobjectrequired
Show child attributes
next_cursorstring | nullrequired

Send it as cursor to read the next page; null on the last page.

per_pageintegerrequired

How many items a page holds at most, such as 25.

Format: int64

prev_cursorstring | nullrequired

Send it as cursor to read the page before; null on the first page.

totalinteger

How many items match in all; left out when the list does not count them.

Format: int64

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.