Retry Failed Enrollments
curl --request POST \
--url https://api.member.dev/v1/hubs/{hub_id}/drip-campaigns/{campaign_id}/enrollments/retry-failed \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"meta": {
"step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
'import requests
url = "https://api.member.dev/v1/hubs/{hub_id}/drip-campaigns/{campaign_id}/enrollments/retry-failed"
payload = { "meta": { "step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/vnd.api+json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/vnd.api+json'},
body: JSON.stringify({meta: {step_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'}})
};
fetch('https://api.member.dev/v1/hubs/{hub_id}/drip-campaigns/{campaign_id}/enrollments/retry-failed', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.member.dev/v1/hubs/{hub_id}/drip-campaigns/{campaign_id}/enrollments/retry-failed",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'meta' => [
'step_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/vnd.api+json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.member.dev/v1/hubs/{hub_id}/drip-campaigns/{campaign_id}/enrollments/retry-failed"
payload := strings.NewReader("{\n \"meta\": {\n \"step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/vnd.api+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.member.dev/v1/hubs/{hub_id}/drip-campaigns/{campaign_id}/enrollments/retry-failed")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/vnd.api+json")
.body("{\n \"meta\": {\n \"step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.member.dev/v1/hubs/{hub_id}/drip-campaigns/{campaign_id}/enrollments/retry-failed")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/vnd.api+json'
request.body = "{\n \"meta\": {\n \"step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n}"
response = http.request(request)
puts response.read_body{
"meta": {
"has_more": true,
"limit": 123,
"retried": 123,
"skipped_still_failing": 123,
"skipped_suppressed": 123
}
}{
"errors": [
{
"status": "<string>",
"title": "<string>",
"code": "<string>",
"detail": "<string>",
"id": "<string>",
"meta": {},
"source": {}
}
],
"meta": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}drip-campaigns
Retry Failed Enrollments
Retry at most 50 failed enrollments per call, including skipped rows.
Optional meta.step_id must belong to the campaign. has_more indicates additional failed rows beyond this batch; fix or skip persistent failures before retrying a batch that is wholly blocked.
POST
/
v1
/
hubs
/
{hub_id}
/
drip-campaigns
/
{campaign_id}
/
enrollments
/
retry-failed
Retry Failed Enrollments
curl --request POST \
--url https://api.member.dev/v1/hubs/{hub_id}/drip-campaigns/{campaign_id}/enrollments/retry-failed \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"meta": {
"step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
'import requests
url = "https://api.member.dev/v1/hubs/{hub_id}/drip-campaigns/{campaign_id}/enrollments/retry-failed"
payload = { "meta": { "step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/vnd.api+json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/vnd.api+json'},
body: JSON.stringify({meta: {step_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'}})
};
fetch('https://api.member.dev/v1/hubs/{hub_id}/drip-campaigns/{campaign_id}/enrollments/retry-failed', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.member.dev/v1/hubs/{hub_id}/drip-campaigns/{campaign_id}/enrollments/retry-failed",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'meta' => [
'step_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/vnd.api+json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.member.dev/v1/hubs/{hub_id}/drip-campaigns/{campaign_id}/enrollments/retry-failed"
payload := strings.NewReader("{\n \"meta\": {\n \"step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/vnd.api+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.member.dev/v1/hubs/{hub_id}/drip-campaigns/{campaign_id}/enrollments/retry-failed")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/vnd.api+json")
.body("{\n \"meta\": {\n \"step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.member.dev/v1/hubs/{hub_id}/drip-campaigns/{campaign_id}/enrollments/retry-failed")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/vnd.api+json'
request.body = "{\n \"meta\": {\n \"step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n}"
response = http.request(request)
puts response.read_body{
"meta": {
"has_more": true,
"limit": 123,
"retried": 123,
"skipped_still_failing": 123,
"skipped_suppressed": 123
}
}{
"errors": [
{
"status": "<string>",
"title": "<string>",
"code": "<string>",
"detail": "<string>",
"id": "<string>",
"meta": {},
"source": {}
}
],
"meta": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Body
application/vnd.api+json
Optional JSON:API meta-only request; omit body to retry all failed steps.
Show child attributes
Show child attributes
Response
Successful Response
Show child attributes
Show child attributes