Generate JWT
Description:
The JWT authentication endpoint allows you to authenticate with the Rayo system using a JSON Web Token. You need to provide the following information:
- Rayo account API key
POST /api/rest/auth
curl \
-X POST cerebro.techrayo.com/api/rest/auth \
-H "Authorization: Apikey $ACCESS_TOKEN"
Response examples (200)
# Headers
Date: Fri, 03 Jun 2022 20:28:56 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
x-request-id: 699540525f5812e0e576de5be2bbf22e
Content-Encoding: gzip
CF-Cache-Status: DYNAMIC
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Content-Security-Policy: upgrade-insecure-requests
Referrer-Policy: strict-origin-when-cross-origin
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
Server: cloudflare
CF-RAY: 715b2d8aaffcfeba-IAH
# Payload
{
"accessToken": {
"accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InhVV3hidHA3WHF6WElDTnZsT2VTSiJ9.eyJodHRwczovL2hhc3VyYS5pby9qd3QvY2xhaW1zIjp7IngtaGFzdXJhLWFsbG93ZWQtcm9sZXMiOlsiT0RJTiIsIlRIT1IiLCJMT0tJIl0sIngtaGFzdXJhLWNsaWVudC1pZCI6Ijc0MWRhYjIyLWFjMjUtNGY4ZS04YTA0LTQyMzBlYWQ2NWU1OCIsIngtaGFzdXJhLWRlZmF1bHQtcm9sZSI6IkxPS0kiLCJ4LWhhc3VyYS1yb2xlIjoiT0RJTiJ9LCJpc3MiOiJodHRwczovL2RldmVsb3BtZW50LXJheW8udXMuYXV0aDAuY29tLyIsInN1YiI6IjRqdEVkM3JtMHlXcHZJN1JwUVRWN0ZqWGxaamsxcnk4QGNsaWVudHMiLCJhdWQiOiJodHRwczovL2NlcmVicm8udGVjaHJheW8uY29tL2p3dCIsImlhdCI6MTY1NDI4ODEzNiwiZXhwIjoxNjU0Mzc0NTM2LCJhenAiOiI0anRFZDNybTB5V3B2STdScFFUVjdGalhsWmprMXJ5OCIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyJ9.xffpVnXOK_LW-_JK-WGN1Y8sZKDNef3ISpRzwgBaS-_Ray-wXZTlB9CD6gkk4gxgTNRaBv_5hLN8kZLc-WBVVGdXrzDAj37ByJFWHmk5-eFZhUELeTSfe55QtxsMi4-dd4VwEYRHmTnA3hyCsFmUqOpYwPJ4KKNN81smDDtBBdkue5MZDDqFRokU1ArRZk62OucwV0dnHm6_3ar8eInBJZdNzfGish0kGUa2N_hvI7ybckAqb8-JCzUQ4t5A9WsdFaqN6f_O2Ag_1ZzDWdQ4dT3MVrRCCnC7GuY2as3UCiAFtdJP37n10AY6YkfdX-3zMPySdLtGqCFG24OCr_V2kw"
}
}
Response examples (200)
# Headers
Date: Fri, 03 Jun 2022 20:28:56 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
x-request-id: 699540525f5812e0e576de5be2bbf22e
Content-Encoding: gzip
CF-Cache-Status: DYNAMIC
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Content-Security-Policy: upgrade-insecure-requests
Referrer-Policy: strict-origin-when-cross-origin
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
Server: cloudflare
CF-RAY: 715b2d8aaffcfeba-IAH
# Payload
{}