security
Create a Personal Access Token (PAT)
Changed onGenerate a new Personal Access Token for programmatic API access. PATs are long-lived tokens that can be used instead of regular authentication for automated systems. Requires elevated permissions.
post/pat
Request
- Base URLhttps://{subdomain}.auth.{region}.nhost.run/v1
- URLhttps://{subdomain}.auth.{region}.nhost.run/v1/pat
- AuthHTTP bearer
Request body
Example request
{
"metadata": {
"name": "my-pat",
"used-by": "my-app-cli"
}
}Response
Successfully created a Personal Access Token
Example response
{
"id": "2c35b6f3-c4b9-48e3-978a-d4d0f1d42e24",
"personalAccessToken": "2c35b6f3-c4b9-48e3-978a-d4d0f1d42e24"
}Changes
- warning
added the new
otp-too-many-attemptsenum value to theresponse property for the response status
- warning
- warning
added the new
user-already-existsenum value to theresponse property for the response status - info
removed the
email-already-in-useenum value from theresponse property for the response status
- warning