Cards API
The Cards API exposes information about generated card instances, and allows them to be actioned programmatically.
You can interact with the Cards API using Insomnia (follow the Insomnia instructions) or curl.
Detailed specs and examples can be found in the Atomic API spec for the Cards API endpoint.
A credential role of events
is required to interact with the Cards API.
This guide lists a few request and response examples using curl. When using curl, you'll need to set up your Authentication first.
Query attributes
Card instances can be queried and actioned by any combination of the following attributes - all of which are optional:
- eventName
- lifecycleId
- cardTemplateId
- flowInstanceId
- flowInvocationId
- userId
- status
The eventName
attribute is a legacy attribute.
The flowInstanceId
is a unique id to identify the instance of an Action Flow.
The flowInvocationId
identifies the invocation or API request which triggered the Action Flow instance.
The status
of a card refers to one of the possible states it can be in throughout its lifecycle. Read more about this in the Card lifecycle model.