Overview
POST
/auth/refreshauthRotate refresh token → new JWT
Create a record in refresh.
Responses
200
token + refreshToken
- tokenstring
JWT access token (Bearer credential)
- refreshTokenstring
Example
{
"token": "string",
"refreshToken": "string"
}401
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}Code examples
cURL
curl -X POST "https://api.agenticdeveloperhub.com/auth/refresh" \
-H "Authorization: Bearer YOUR_TOKEN"JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/auth/refresh", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
},
});
const data = await res.json();