Redeem access code
POST
/api/v1/auth/redeem-code
const url = 'https://app.ayna.com/api/v1/auth/redeem-code';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"code":"example","device_info":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.ayna.com/api/v1/auth/redeem-code \ --header 'Content-Type: application/json' \ --data '{ "code": "example", "device_info": {} }'Redeem a pilot access code for API key and JWT tokens.
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}