API Reference
Mint a new signing secret with a 24-hour overlap
Mint a new signing secret with a 24-hour overlap
curl --request POST \
--url https://developer-api.seekout.io/v1/webhook-endpoints/{endpoint_id}/rotate-secretimport requests
url = "https://developer-api.seekout.io/v1/webhook-endpoints/{endpoint_id}/rotate-secret"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://developer-api.seekout.io/v1/webhook-endpoints/{endpoint_id}/rotate-secret', 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://developer-api.seekout.io/v1/webhook-endpoints/{endpoint_id}/rotate-secret",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://developer-api.seekout.io/v1/webhook-endpoints/{endpoint_id}/rotate-secret"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://developer-api.seekout.io/v1/webhook-endpoints/{endpoint_id}/rotate-secret")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer-api.seekout.io/v1/webhook-endpoints/{endpoint_id}/rotate-secret")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"endpoint_id": "<string>",
"secret_id": "<string>",
"secret": "<string>",
"previous_retires_at": "2023-11-07T05:31:56Z"
}{
"type": "urn:seekout:developer-api:problem:validation_failed",
"title": "Request validation failed",
"status": 422,
"detail": "The request does not match the operation contract.",
"code": "validation_failed"
}Response
Successful Response
A rotation, with the new secret shown for the only time.
Was this page helpful?
⌘I
Mint a new signing secret with a 24-hour overlap
curl --request POST \
--url https://developer-api.seekout.io/v1/webhook-endpoints/{endpoint_id}/rotate-secretimport requests
url = "https://developer-api.seekout.io/v1/webhook-endpoints/{endpoint_id}/rotate-secret"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://developer-api.seekout.io/v1/webhook-endpoints/{endpoint_id}/rotate-secret', 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://developer-api.seekout.io/v1/webhook-endpoints/{endpoint_id}/rotate-secret",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://developer-api.seekout.io/v1/webhook-endpoints/{endpoint_id}/rotate-secret"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://developer-api.seekout.io/v1/webhook-endpoints/{endpoint_id}/rotate-secret")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer-api.seekout.io/v1/webhook-endpoints/{endpoint_id}/rotate-secret")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"endpoint_id": "<string>",
"secret_id": "<string>",
"secret": "<string>",
"previous_retires_at": "2023-11-07T05:31:56Z"
}{
"type": "urn:seekout:developer-api:problem:validation_failed",
"title": "Request validation failed",
"status": 422,
"detail": "The request does not match the operation contract.",
"code": "validation_failed"
}