Disconnect a credential
curl --request DELETE \
--url https://app.rubiehq.com/api/v1/credentials/{credentialId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.rubiehq.com/api/v1/credentials/{credentialId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.rubiehq.com/api/v1/credentials/{credentialId}', 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://app.rubiehq.com/api/v1/credentials/{credentialId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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://app.rubiehq.com/api/v1/credentials/{credentialId}"
req, _ := http.NewRequest("DELETE", 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.delete("https://app.rubiehq.com/api/v1/credentials/{credentialId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.rubiehq.com/api/v1/credentials/{credentialId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"error": {
"type": "authentication_error",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
]
}
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
]
}
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
]
}
}Credentials
Delete credential
Disconnect and revoke a vaulted credential.
DELETE
/
credentials
/
{credentialId}
Disconnect a credential
curl --request DELETE \
--url https://app.rubiehq.com/api/v1/credentials/{credentialId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.rubiehq.com/api/v1/credentials/{credentialId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.rubiehq.com/api/v1/credentials/{credentialId}', 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://app.rubiehq.com/api/v1/credentials/{credentialId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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://app.rubiehq.com/api/v1/credentials/{credentialId}"
req, _ := http.NewRequest("DELETE", 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.delete("https://app.rubiehq.com/api/v1/credentials/{credentialId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.rubiehq.com/api/v1/credentials/{credentialId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"error": {
"type": "authentication_error",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
]
}
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
]
}
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
]
}
}Permanently deletes the credential. Subsequent Blueprint triggers that reference
this id will fail. Returns
204 with an empty body on success.
curl -s "$RUBIE_API_URL/api/v1/credentials/cred_..." \
-X DELETE \
-H "Authorization: Bearer $RUBIE_API_KEY" \
-H "Idempotency-Key: disconnect-user-42"
Notes
- Use this when an end user disconnects an integration in your product.
- After deletion, create a new credential session if they reconnect.
- Supports
Idempotency-Keyso retries of a disconnect cannot produce surprising side effects.
cred_... ids
yourself when a session completes; this endpoint is only for revocation.Authorizations
Your Rubie API key as a bearer token.
Headers
Unique key for safely retrying mutating requests. Matching key + body replays the original response for 24 hours. Matching key + different body returns 409 conflict.
Path Parameters
Response
Credential deleted