Guided setup to connect SES with an AWS role or with least-privilege keys (credentials.manage)
POST
/v1/brands/{brand}/deliverability-connectors/ses:setup
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/deliverability-connectors/ses:setup';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"region":"example","domain":"example","senders":["hello@example.com"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/deliverability-connectors/ses:setup \ --header 'Content-Type: application/json' \ --data '{ "region": "example", "domain": "example", "senders": [ "hello@example.com" ] }'Generates a unique external ID and the suggested policies (least privilege for the domain and the senders, and trust in the Replifier account with that external ID), with the CloudFormation quick-create link. Valid for 24 hours and single use. Without role mode configured on the platform, trustPolicy and cloudFormation are null and roleModeAvailable is false (the policy works for key mode).
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”brand
required
string
Example
brd_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
region
required
string
domain
required
string
senders
Array<string>
Example generated
{ "region": "example", "domain": "example", "senders": [ "hello@example.com" ]}Responses
Section titled “Responses”Setup
Media typeapplication/json
object
setupId
required
string
externalId
required
Random (43 characters), unique per setup; generated by the API.
string
platformAccountId
required
string
roleName
required
ReplifierSES-<sanitized domain>; the prefix is required.
string
permissionsPolicy
required
object
key
additional properties
trustPolicy
required
object
key
additional properties
cloudFormation
required
object
templateUrl
required
string
quickCreateUrl
required
string
roleModeAvailable
required
boolean
expiresAt
required
string
Example generated
{ "setupId": "example", "externalId": "example", "platformAccountId": "example", "roleName": "example", "permissionsPolicy": { "additionalProperty": "example" }, "trustPolicy": { "additionalProperty": "example" }, "cloudFormation": { "templateUrl": "example", "quickCreateUrl": "example" }, "roleModeAvailable": true, "expiresAt": "example"}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}