Nile Documentation home pagelight logodark logo
  • Community
  • Get Started
  • Get Started
auth
Get CSRF token
Postgres
Auth
AI
Platform
ManagementAPI
Auth API
Pricing
Templates
Discord
auth
  • POST
    Sign in to the application
  • POST
    Sign out of the application
  • GET
    Get the current session
  • GET
    Get CSRF token
  • GET
    Get available providers
  • POST
    Handle provider callback
  • POST
    Refresh session token
  • GET
    Retrieve password token
  • PUT
    Resets the password
  • POST
    Reset password
users
  • GET
    Identify the principal
  • PUT
    update the principal profile
  • POST
    Signs up a new user
  • PUT
    links an existing user to a tenant
  • DEL
    Unlinks a user from a tenant
  • PUT
    update a user
  • GET
    a list of tenant users
  • POST
    create a new user and assigns them to a tenant
  • GET
    lists tenants of user
  • POST
    Creates a user
tenants
  • GET
    get a tenant
  • PUT
    update a tenant
  • DEL
    delete a tenant
  • POST
    creates a tenant
auth

Get CSRF token

Returns a CSRF token to be used in subsequent requests.

GET
/
v2
/
databases
/
{database}
/
auth
/
csrf
{
  "csrfToken": "abc123"
}

Path Parameters

​
database
string
required

The string (id or name, depending on the credentials)

Response

200 - application/json

CSRF token

The response is of type object.

Was this page helpful?

Get the current sessionGet available providers
{
  "csrfToken": "abc123"
}
Nile Documentation home pagelight logodark logo
xgithublinkedindiscord

Resources

BlogPricingTemplatesCommunity

Company

CareersAbout

Support

Contact SalesGet HelpFAQ
xgithublinkedindiscord
Powered by Mintlify