Save a connector with the customer's key in the vault (credentials.manage; maximum 20 per brand)
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/deliverability-connectors';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"vendor":"example","name":"example","config":{"additionalProperty":"example"},"secret":"example"}'};
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 \ --header 'Content-Type: application/json' \ --data '{ "vendor": "example", "name": "example", "config": { "additionalProperty": "example" }, "secret": "example" }'With provider: "ses" (DAT-3230) it connects Amazon SES for sending, same as POST /v1/brands/{brand}/connections: authMode: "role" with setupId (from ses:setup) and roleArn, or authMode: "keys" (default) with the credential and the optional setupId.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
brd_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”object
object
The provider key. It is encrypted and never shown again.
object
object
Provider credential (SES: accessKeyId and secretAccessKey; SendGrid: apiKey; Mailjet: apiKey and apiSecret; Azure: connectionString; SMTP: username and password). Never returned.
object
SES (DAT-3230): keys (default) or role.
SES with keys: the ses:setup configuration whose suggested policy was used (it is recorded).
object
Example
arn:aws:iam::123456789012:role/ReplifierSES-midominio-comResponses
Section titled “Responses”Saved connector (without the key), or the SES connection
object
object
The key is stored encrypted; it is never returned.
object
object
object
object
object
Role mode: validation result (e.g. the sandbox warning).
object
Example
{ "hasSecret": true, "status": "untested"}SES with the credentials_change approval rule: it waits for another person
object
Brand of the action; null if it applies to the whole organization.
executed: approved and the action took place; failed: approved but the action failed (see failureCode); expired: 72 h passed without a decision.
What the approver sees (no secrets).
object
Person (usr_…) or API key (key_…) that requested it.
Error code of the action when it ended up failed.
People who can decide it (excluding the requester). 0: the dashboard suggests inviting someone. Null if it is no longer pending and in listings (computed when it is requested and when it is fetched).
Example
{ "action": "security_policy_change", "status": "pending", "requestedSource": "panel"}Invalid data
object
object
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
object
object
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
object
object
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
object
object
Example
{ "error": { "code": "not_found" }}Conflict
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}Error
object
object
Example
{ "error": { "code": "not_found" }}Service temporarily unavailable
object
object
Example
{ "error": { "code": "not_found" }}