Working with the vault
This section is for developers and administrators of Port0 itself and documents interals. If you are a developer who wants to integrate your applications with Port0, please refer to the developer documentation.
Assuming base URL: api.port0.iiitk.in
The user can only get one refresh token at a time. The refresh token is used to get a new access token.
This endpoint has strict rate limits.
POST JSON /auth/refresh
{
"email": "<...>@iiitkottayam.ac.in",
"keyHash": "<key>"
}
{
"reftoken": "<JWT>"
}
Access tokens expire every 15 minutes.
POST JSON /auth/access
{
"reftoken": "<JWT>"
}
{
"acctoken": "<JWT>"
}
POST JSON /getVault
{
"acctoken": "<JWT>"
}
{
"salt": "<PBKDF2 salt>",
"vault": "<encrypted vault>"
}
POST JSON /updateVault
{
"acctoken": "<JWT>",
"vault": "<encrypted vault>",
(optional) "salt": "<PBKDF2 salt>"
}