Preview an external integration account link
curl --request POST \
--url https://api.acornops.dev/api/v1/auth/external-integrations/link/preview \
--header 'Content-Type: application/json' \
--cookie acornops_cp_session= \
--data '
{
"token": "intlink_random_abc123",
"workspaceGrants": [
{
"workspaceId": "<string>",
"capabilities": [
"<string>"
]
}
]
}
'const options = {
method: 'POST',
headers: {cookie: 'acornops_cp_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
token: 'intlink_random_abc123',
workspaceGrants: [{workspaceId: '<string>', capabilities: ['<string>']}]
})
};
fetch('https://api.acornops.dev/api/v1/auth/external-integrations/link/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"integrationClientId": "<string>",
"provider": "<string>",
"clientDisplayName": "<string>",
"externalUserId": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"signedInUser": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"displayName": "<string>",
"emailVerified": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"grantableWorkspaces": [
{
"workspaceId": "<string>",
"workspaceName": "<string>",
"role": "<string>",
"grantedCapabilities": [
"<string>"
],
"grantableCapabilities": [
"<string>"
]
}
],
"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
Preview an external integration account link
Authenticated browser-session endpoint used by the management console to display safe consent metadata before explicit approval.
Preview an external integration account link
curl --request POST \
--url https://api.acornops.dev/api/v1/auth/external-integrations/link/preview \
--header 'Content-Type: application/json' \
--cookie acornops_cp_session= \
--data '
{
"token": "intlink_random_abc123",
"workspaceGrants": [
{
"workspaceId": "<string>",
"capabilities": [
"<string>"
]
}
]
}
'const options = {
method: 'POST',
headers: {cookie: 'acornops_cp_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
token: 'intlink_random_abc123',
workspaceGrants: [{workspaceId: '<string>', capabilities: ['<string>']}]
})
};
fetch('https://api.acornops.dev/api/v1/auth/external-integrations/link/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"integrationClientId": "<string>",
"provider": "<string>",
"clientDisplayName": "<string>",
"externalUserId": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"signedInUser": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"displayName": "<string>",
"emailVerified": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"grantableWorkspaces": [
{
"workspaceId": "<string>",
"workspaceName": "<string>",
"role": "<string>",
"grantedCapabilities": [
"<string>"
],
"grantableCapabilities": [
"<string>"
]
}
],
"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": {}
}
}Authorizations
Body
application/json
Response
Safe external integration link consent metadata.