Working with cross-reference lookup API requests

Introduction

The Patchworks API can be used to add and manage cross-reference lookups. Using the API you can work with:

Authentication

All API requests must be authenticated with a Patchworks bearer token. To obtain a token, send a POST request to the following endpoint:

https://svc-fabric.pwks.co/api/v1/login

In the request body, add the email and password that you use to log into the Patchworks dashboard. You should add this as JSON - for example:

{
    "email": "[email protected]",
    "password": "mypassword123*"
}

A successful response returns a token. Tokens are valid for 24 hours.

For detailed information about obtaining tokens, please see Obtaining a token for Patchworks API authentication.

Required cross reference details

The Patchworks cross-reference lookup API accepts two identifiers as parameters:

ParameterSummary

{{id}}

The unique identifier associated with the cross-reference lookup.

{{valueID}}

The unique identifier associated with the cross-reference lookup row (also known as a mapping row).

id

Having selected a cross-reference lookup to view/edit, the unique id can be found at the end of the URL - for example:

valueId

Having selected a cross-reference lookup to view/edit, each existing lookup row is displayed with a unique valueId in the id column:

Lookups API

Lookup rows API

Last updated