Get collection refresh status
curl --request GET \
--url https://api.sequin.io/v1/collections/{credential_id}/refresh/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequin.io/v1/collections/{credential_id}/refresh/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequin.io/v1/collections/{credential_id}/refresh/status', 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.sequin.io/v1/collections/{credential_id}/refresh/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequin.io/v1/collections/{credential_id}/refresh/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sequin.io/v1/collections/{credential_id}/refresh/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequin.io/v1/collections/{credential_id}/refresh/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"credential_id": "5f4b3b3e-4e3e-4b3b-8e3e-4b3e4b3e4b3e",
"last_started_at": "2024-06-31T23:24:09Z",
"last_succeeded_at": "2024-06-31T23:25:02Z",
"status": "succeeded",
"error": null
}
Collections
Get collection refresh status
This endpoint returns the refresh status of a credential’s collections.
GET
/
v1
/
collections
/
{credential_id}
/
refresh
/
status
Get collection refresh status
curl --request GET \
--url https://api.sequin.io/v1/collections/{credential_id}/refresh/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequin.io/v1/collections/{credential_id}/refresh/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequin.io/v1/collections/{credential_id}/refresh/status', 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.sequin.io/v1/collections/{credential_id}/refresh/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequin.io/v1/collections/{credential_id}/refresh/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sequin.io/v1/collections/{credential_id}/refresh/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequin.io/v1/collections/{credential_id}/refresh/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"credential_id": "5f4b3b3e-4e3e-4b3b-8e3e-4b3e4b3e4b3e",
"last_started_at": "2024-06-31T23:24:09Z",
"last_succeeded_at": "2024-06-31T23:25:02Z",
"status": "succeeded",
"error": null
}
Request parameters
Response fields
The time Sequin last started the latest refresh of the credential’s collections. A datetime in ISO 8601 format.
The time Sequin last successfully refreshed the credential’s collections. A datetime in ISO 8601 format.
The status of the last refresh task. One of
processing, succeeded, or failed.processing indicates Sequin is currently refreshing the credential’s collections.If the latest refresh attempt failed (i.e.
state is failed), this field contains details about the error.{
"credential_id": "5f4b3b3e-4e3e-4b3b-8e3e-4b3e4b3e4b3e",
"last_started_at": "2024-06-31T23:24:09Z",
"last_succeeded_at": "2024-06-31T23:25:02Z",
"status": "succeeded",
"error": null
}

