Admin::Auth API

In order to access the ActiveAdmin panel and other admin tools like Sidekiq, you must have a cookie based session. This is setup by passing your JWT to this endpoint.

create admin session

Request

Headers

Version: HTTP/1.0
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo5LCJleHAiOjE3OTQ1NDAxOTcsImlhdCI6MTc5NDU0MDAxN30.YSUoh1X-SBgYQs5ATvd2hJVaA1IvjMNzeZmLPsxzGEk
Host: example.org
Cookie: 

Route

POST /admin/auth

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json
Cache-Control: no-cache
Set-Cookie: _session_id=c04aead870e9df1c3de62a06c0eb1f06; path=/; expires=Fri, 20 Nov 2026 03:20:17 GMT; HttpOnly; SameSite=Lax
X-Request-Id: a4e8622a-5bf1-42de-900e-6aee02106f33
X-Runtime: 0.035694
Content-Length: 0

Status

201