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
Body
{
}
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/"01e78e3a3e972b6c9971d5db3cbd7633"
cache-control: max-age=0, private, must-revalidate
x-request-id: 2dbf3f01-0fc4-4d5d-b7e3-b33c16640696
x-runtime: 0.025249
content-length: 901
Body
{
"auth_template": {
"id": 8,
"content": "Commodi non deserunt. Odit voluptate voluptatem. Deleniti numquam suscipit.",
"image": {
"id": 10,
"signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--8a30cbf6244f2eb87283c818bf94f6cd4b9fd4d2",
"byte_size": 596,
"filename": "test_image.png",
"url": "http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--8a30cbf6244f2eb87283c818bf94f6cd4b9fd4d2/test_image.png"
},
"operator_full_name": "Prince Collins",
"operator_image": {
"id": 11,
"signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--ca473ad0f3066743ccffedddcbea7349d6076a11",
"byte_size": 596,
"filename": "test_image.png",
"url": "http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--ca473ad0f3066743ccffedddcbea7349d6076a11/test_image.png"
},
"operator_position": "Lead Healthcare Analyst"
}
}