Unlink an external integration account
curl --request POST \
--url https://api.acornops.dev/api/v1/auth/external-integrations/links/unlink \
--header 'Content-Type: application/json' \
--data '
{
"integrationClientId": "<string>",
"provider": "<string>",
"externalUserId": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
integrationClientId: '<string>',
provider: '<string>',
externalUserId: '<string>'
})
};
fetch('https://api.acornops.dev/api/v1/auth/external-integrations/links/unlink', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "revoked",
"link": {
"id": "<string>",
"integrationClientId": "<string>",
"provider": "<string>",
"clientDisplayName": "<string>",
"externalUserId": "<string>",
"linkedAt": "2023-11-07T05:31:56Z",
"lastAuthenticatedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"externalDisplayName": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}Auth and users
Unlink an external integration account
Authenticated browser-session endpoint that revokes one active external integration link owned by the signed-in user.
Unlink an external integration account
curl --request POST \
--url https://api.acornops.dev/api/v1/auth/external-integrations/links/unlink \
--header 'Content-Type: application/json' \
--data '
{
"integrationClientId": "<string>",
"provider": "<string>",
"externalUserId": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
integrationClientId: '<string>',
provider: '<string>',
externalUserId: '<string>'
})
};
fetch('https://api.acornops.dev/api/v1/auth/external-integrations/links/unlink', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "revoked",
"link": {
"id": "<string>",
"integrationClientId": "<string>",
"provider": "<string>",
"clientDisplayName": "<string>",
"externalUserId": "<string>",
"linkedAt": "2023-11-07T05:31:56Z",
"lastAuthenticatedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"externalDisplayName": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}⌘I