Create a signature
POST/:handle/sig/create
Create a signature
Request
Path Parameters
handle stringrequired
Org handle
- application/json
Body
required
request body
digest string
Digest of the plaintext hashed with salt
salt string
Salt used for hashing the plaintext
ttl_secs integer
Amount of seconds that a signature is set to exist (30s < TTL < ~3months, 0 == indefinitely)
Responses
- 200
- 400
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
data
object
session_id string
ttl_secs integer
success boolean
{
"data": {
"session_id": "string",
"ttl_secs": 0
},
"success": true
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
data integer[]
detail string
Human-friendly description that can be shown to the user.
error_code string
error_id string
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
data integer[]
detail string
Human-friendly description that can be shown to the user.
error_code string
error_id string
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
data integer[]
detail string
Human-friendly description that can be shown to the user.
error_code string
error_id string
Only present in case of internal errors (status 500 or 502)
{
"data": [
0
],
"detail": "string",
"error_code": "string",
"error_id": "string"
}
Loading...