Using REST API v1 and trying to find a simple way to list all attributes for a particular data extension. My main objective is to send an event to initiate a journey (API: interaction/v1/events
). In order to send an event I need to populate EventDefinitionKey
and contact attributes for Data
.
I'm able to list event definitions (API: interaction/v1/eventDefinitions
) which contains id
, dataExtensionId
and dataExtensionName
. Awesome and easy, but I can't figure out which endpoint to hit to list attributes for data extension to populate event Data
.
API /contacts/v1/attributeSetDefinitions
is great but lists every data extension with attributes which feels heavy handed and unnecessary. Attribute set definitions can be filtered with /contacts/v1/schemas/{schemaId}/attributeSetDefinitions/{id}
but now schema ID needs to be fetched too resulting in more API calls and seemingly unnecessary work.
Is there a convenient API endpoint to save me all this trouble? If not, what's a recommended workaround?