RETURN TYPE
{
status: "success" | "alert" | "error", // Status of the executed process
message: string, // Message regarding the result of the process
result?: <T>, // Result of the executed process (The return has a generic type, the same referring to the type of request made)
errorCode?: string // Code error result of endpoint request (If have)
}
This endpoint's allows the generation of new tokens and revoke one existing token at a time
<aside> 💡 The token does not need to be generated for every request made.
Only once with the administrator user, with the token generated, any and all requests can be made with it.
The token only expires manually (Revoke)
</aside>
REQUEST URI, PARAM'S AND BODY DATA
POST
https://<cliente>-api.rastrin.app/auth/integrations-token ⇒ Generate new token
(Generate one token)
**⇒ Body (User)
PATCH
https://<cliente>-api.rastrin.app/auth/integrations-token/:id ⇒ Update (Revoke / Active) existing token BY id
(Updates only one token at a time)
**⇒ Param :id (String)
⇒ Body (User)
PATCH
https://<cliente>-api.rastrin.app/auth/integrations-token/by-token/:token ⇒ Update (Revoke / Active) existing token BY token
(Updates only one token at a time)
**⇒ Param :token (String)
⇒ Body (User)
This endpoint allows you to delete an existing token at a time
REQUEST URI, PARAM'S AND BODY DATA
DELETE
https://<cliente>-api.rastrin.app/auth/integrations-token/:id ⇒ Delete existing token BY id
(Delete only one token at a time)
**⇒ Param :id (String)
⇒ Body (User)