Complete credential authentication
curl --request POST \
--url https://api.pid.peridotvault.com/v1/credentials/authenticate/finish \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '
{
"authenticationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credential": {}
}
'const options = {
method: 'POST',
headers: {cookie: 'pid_access=', 'Content-Type': 'application/json'},
body: JSON.stringify({authenticationId: '3c90c3cc-0d44-4b50-8888-8dd25736052a', credential: {}})
};
fetch('https://api.pid.peridotvault.com/v1/credentials/authenticate/finish', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/credentials/authenticate/finish"
payload = {
"authenticationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credential": {}
}
headers = {
"cookie": "pid_access=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/credentials/authenticate/finish"
payload := strings.NewReader("{\n \"authenticationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"credential\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "pid_access=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"ok": true
}{
"statusCode": 400,
"message": [
"handle must be 3-20 chars: lowercase letters, numbers, underscore"
]
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}credentials
Complete credential authentication
POST
/
credentials
/
authenticate
/
finish
Complete credential authentication
curl --request POST \
--url https://api.pid.peridotvault.com/v1/credentials/authenticate/finish \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '
{
"authenticationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credential": {}
}
'const options = {
method: 'POST',
headers: {cookie: 'pid_access=', 'Content-Type': 'application/json'},
body: JSON.stringify({authenticationId: '3c90c3cc-0d44-4b50-8888-8dd25736052a', credential: {}})
};
fetch('https://api.pid.peridotvault.com/v1/credentials/authenticate/finish', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/credentials/authenticate/finish"
payload = {
"authenticationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credential": {}
}
headers = {
"cookie": "pid_access=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/credentials/authenticate/finish"
payload := strings.NewReader("{\n \"authenticationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"credential\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "pid_access=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"ok": true
}{
"statusCode": 400,
"message": [
"handle must be 3-20 chars: lowercase letters, numbers, underscore"
]
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}