Retrieve a note
client.note.retrieve(stringid, RequestOptionsoptions?): NoteRetrieveResponse { id, createdAt, fields, 4 more }
GET/v1/notes/{id}
Parameters
id: string
Unique identifier of the note to retrieve.
Returns
Retrieve a note
import Lightfield from 'lightfield';
const client = new Lightfield({
apiKey: 'My API Key',
});
const noteRetrieveResponse = await client.note.retrieve('id');
console.log(noteRetrieveResponse.id);{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}Returns Examples
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}