Authorization
On this page
To get started on either environment - DEV, TEST(PILOT) or PROD - you need a valid Notardec API key. Contact us. Keys must not be shared with any third party and are to be kept secret and protected. A key is created for a single legal entity and a single project/product. If you build an App and Web Frontend, and both use the same backend for communication with the Notardec API, then a single key is sufficient. If you have two different software products, each communicating on its own with the Notardec API, then you need two API keys.
Key example
v4.public.eyJpVJI6IjdkMmQwMTBlLWQ0YfetNDJhOC04YjU3LTA3MTBiMDBkMGbKfiIsImF1ZCI6Ik5PVFJfgDiIsImlhdCI6IjIwMjItMDItMjJUMTA6MTI6NDcuNdA1WiJ1sMxzTESdnzKa-2jkQpNRjOLjFX1Re9GSTp_Ed9q-xODgETx8JB6Q9K9iN45EhQ9UAxKIsFSSowKtWZ7uQSAtAA
Usage example
export async function createAsset(apiKey: string, token: string | null, payload: CreateAssetRequest): Promise<IResponse<AssetResponse>> {
const result = await axios.post<IResponse<AssetResponse>>(`${process.env.NOTARDEC_URL}/assets`, payload, {
headers: {
'X-API-KEY': apiKey,
Authorization: `Bearer ${token}`,
},
});
return result.data;
}
Here, the first parameter we pass is the Notardec Key. This key must be placed in the
“X-API-KEY” header of the request.