Create a mutual authentication session
POSThttps://api.b2v.xyz/v1/:handle/session/create
Create a mutual authentication session
Request
Path Parameters
Org handle
- application/json
Body
required
request body
Digest of the expected values after being hashed with the salt multiple times
fields
object[]
Salt used for hashing the plaintext
Optional subject
Default or saved mutual authentication template ID
Amount of seconds that a session is set to exist (30s < TTL < 15m)
Responses
- 200
- 400
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
data
object
{
"data": {
"session_id": "string",
"ttl_secs": 0
},
"success": true
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Human-friendly description that can be shown to the user.
Only present in case of internal errors (status 500 or 502)
{
"data": [
0
],
"detail": "string",
"error_code": "string",
"error_id": "string"
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
Human-friendly description that can be shown to the user.
Only present in case of internal errors (status 500 or 502)
{
"data": [
0
],
"detail": "string",
"error_code": "string",
"error_id": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
Human-friendly description that can be shown to the user.
Only present in case of internal errors (status 500 or 502)
{
"data": [
0
],
"detail": "string",
"error_code": "string",
"error_id": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://api.b2v.xyz/v1/:handle/session/create' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"digest": "string",
"fields": [
{
"description": "string",
"format": "string",
"name": "string",
"type": "string"
}
],
"salt": "string",
"subject": "string",
"template_id": "string",
"ttl_secs": 0
}'