GetTokenDetails
curl --request GET \
--url https://api.siftstack.com/api/v1/external-sync \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.siftstack.com/api/v1/external-sync"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.siftstack.com/api/v1/external-sync"
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))
}{
"success": true,
"externalSync": {
"scimServerUrl": "<string>",
"tokenLifetimeSeconds": 123,
"organizationId": "<string>",
"mostRecentSyncDate": "2023-11-07T05:31:56Z",
"mostRecentSyncByUserId": "<string>",
"tokenCreatedDate": "2023-11-07T05:31:56Z",
"mostRecentTokenByUserId": "<string>"
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}ExternalSyncService
GetTokenDetails
Get details about the most recent token generated, does not include the token itself
GET
/
api
/
v1
/
external-sync
GetTokenDetails
curl --request GET \
--url https://api.siftstack.com/api/v1/external-sync \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.siftstack.com/api/v1/external-sync"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.siftstack.com/api/v1/external-sync"
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))
}{
"success": true,
"externalSync": {
"scimServerUrl": "<string>",
"tokenLifetimeSeconds": 123,
"organizationId": "<string>",
"mostRecentSyncDate": "2023-11-07T05:31:56Z",
"mostRecentSyncByUserId": "<string>",
"tokenCreatedDate": "2023-11-07T05:31:56Z",
"mostRecentTokenByUserId": "<string>"
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Was this page helpful?
⌘I