Get a random auth template
Auth Templates
GET random auth template
Endpoint
GET /api/v1/auth_templates/random
Parameters
Name | Description | In |
---|---|---|
by_usage required | Usage of the auth template | ["create_account", "create_password", "company_details", "login"] |
Request
Route
GET /api/v1/auth_templates/random?by_usage=create_account
Headers
Accept: application/json
Content-Type: application/json
Host: example.org
Cookie:
Query Parameters
by_usage=create_account
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"ea1ab0be3f26b57b17407cef222467d9"
cache-control: max-age=0, private, must-revalidate
x-request-id: 4e2a5370-c893-489d-8620-cf2825b5fccf
x-runtime: 0.015625
content-length: 885
Body
{
"auth_template": {
"id": 8,
"content": "Rem voluptatem quos. Id repellendus et. Deleniti molestias voluptatibus.",
"image": {
"id": 10,
"signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--313304600b74bbf71a6249941c2fbb8b22d76a6c",
"byte_size": 596,
"filename": "test_image.png",
"url": "http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--313304600b74bbf71a6249941c2fbb8b22d76a6c/test_image.png"
},
"operator_full_name": "Garth Grant",
"operator_image": {
"id": 11,
"signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--754cd492f502beb7d67044bc2affb6577a520b4a",
"byte_size": 596,
"filename": "test_image.png",
"url": "http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--754cd492f502beb7d67044bc2affb6577a520b4a/test_image.png"
},
"operator_position": "Sales Manager"
}
}