arazzo: 1.0.1
info:
title: Adobe Campaign Profile Subscription
summary: Create a subscriber profile, create a subscription service, then subscribe the profile to it.
description: >-
Onboards a subscriber into an Adobe Campaign mailing list. The workflow
creates a subscriber profile with contact attributes, creates a subscription
service that represents a mailing list, and then subscribes the new profile
to that service using the profile and service primary keys. Each step inlines
the bearer token and API key so the flow can be read and executed without
opening the underlying OpenAPI description.
version: 1.0.0
x-realizes-capability-ids:
- BC-420.10
x-capability-derivation:
method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
min_confidence: 0.7
sources:
- capability_id: BC-420.10
capability_name: Customer Data Management
spec: adobe-experience-cloud-profiles-api-openapi.yml
confidence: 0.8
model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: campaignApi
url: ../openapi/adobe-experience-cloud-campaign-api-openapi.yml
type: openapi
- name: profilesApi
url: ../openapi/adobe-experience-cloud-profiles-api-openapi.yml
type: openapi
workflows:
- workflowId: profile-subscription
summary: Create a profile and service, then subscribe the profile to the service.
description: >-
Creates a subscriber profile, creates a subscription service, then
subscribes the profile to the service by primary key.
inputs:
type: object
required:
- authorization
- apiKey
- email
- serviceName
- serviceLabel
properties:
authorization:
type: string
description: Bearer access token.
apiKey:
type: string
description: Adobe API key for the x-api-key header.
email:
type: string
description: Email address for the new profile.
firstName:
type: string
description: First name for the new profile.
lastName:
type: string
description: Last name for the new profile.
serviceName:
type: string
description: Internal name for the subscription service.
serviceLabel:
type: string
description: Display label for the subscription service.
steps:
- stepId: createProfile
description: Create a new subscriber profile with contact attributes.
operationId: createProfile
parameters:
- name: Authorization
in: header
value: $inputs.authorization
- name: x-api-key
in: header
value: $inputs.apiKey
requestBody:
contentType: application/json
payload:
email: $inputs.email
firstName: $inputs.firstName
lastName: $inputs.lastName
successCriteria:
- condition: $statusCode == 201
outputs:
profilePKey: $response.body#/PKey
- stepId: createService
description: Create a subscription service representing a mailing list.
operationId: createService
parameters:
- name: Authorization
in: header
value: $inputs.authorization
- name: x-api-key
in: header
value: $inputs.apiKey
requestBody:
contentType: application/json
payload:
label: $inputs.serviceLabel
name: $inputs.serviceName
messageType: email
successCriteria:
- condition: $statusCode == 201
outputs:
servicePKey: $response.body#/PKey
- stepId: subscribeProfile
description: Subscribe the new profile to the subscription service.
operationId: subscribeProfile
parameters:
- name: servicePKey
in: path
value: $steps.createService.outputs.servicePKey
- name: Authorization
in: header
value: $inputs.authorization
- name: x-api-key
in: header
value: $inputs.apiKey
requestBody:
contentType: application/json
payload:
subscriber:
PKey: $steps.createProfile.outputs.profilePKey
successCriteria:
- condition: $statusCode == 201
outputs:
subscriptionStatus: $statusCode
outputs:
profilePKey: $steps.createProfile.outputs.profilePKey
servicePKey: $steps.createService.outputs.servicePKey
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.