---
title: "Create auth intent"
method: POST
path: "/account/auth/intents"
tags: ["Account"]
---

# Create auth intent

`POST /account/auth/intents`

Step 1 of the OAuth sign-in / sign-up flow. Creates a one-time intent and returns the IdP authorization URL the user agent should be redirected to. Source defaults to `google`.

## Request body

- CreateIntent
  - `source` 'google' | 'github' | 'microsoft'

## Response `200`

Intent created. The redirect URL points at the IdP authorize endpoint

- IntentRedirect
  - `url` string, required

## Other responses

- `400` — Identity source disabled
- `429` — Rate limit exceeded

---

[API](https://skmtc.net/laserdata/apis/laserdata-cloud-core-api.md) · [All operations](https://skmtc.net/laserdata/apis/laserdata-cloud-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/laserdata/laserdata-cloud-core-api/revisions/db81a447bba9/schema)
