Auth Templates

Get a random auth template

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/"8e7683736d16d1084f032ee0cceb9adb"
cache-control: max-age=0, private, must-revalidate
x-request-id: 660441ff-96ca-4e08-9740-9eb49f9fc883
x-runtime: 0.039749
content-length: 883

Body

{
  "auth_template": {
    "id": 8,
    "content": "Cum explicabo ut. Dolor explicabo natus. Numquam minus totam.",
    "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": "Wilford Gutkowski",
    "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": "Retail Executive"
  }
}