v1

latestOpenAPI 3.0.12026-07-227292131.4 KB
me

Create an auth token via OAuth.

Create a short-term authentication token using a third-party OAuth provider (e.g., Google).

post/me/oauth/auth-tokens

Request body

provider'google' | 'github' | 'hugging_face' required

The authentication provider used for login.

  • "google": User logs in with Google OAuth.
  • "github": User logs in with Github OAuth.
  • "hugging_face": User logs in with Hugging Face OAuth.
accessTokenstring required

OAuth access token (e.g., Google).

Example request

{
  "provider": "google",
  "accessToken": "ya29.a0AfH6SMB..."
}

Response

Successfully created an auth token for user via OAuth.

authTokenstring required

A temporary token issued after the initial login step. This token is used in the create session API to exchange for access and refresh tokens.

Example response

{
  "authToken": "eyJhbGciOiJIUzI1NiIsInR..."
}