Skip to content

Start signing in with a Microsoft, Google or Apple account

POST
/api/auth/accounts/{provider}/start
curl --request POST \
--url https://forge.example.com/api/auth/accounts/example/start \
--header 'Content-Type: application/json' \
--data '{ "purpose": "example", "invitation": "example", "name": "example" }'

provider is microsoft, google or apple. purpose is sign-in, invitation (with the invitation’s token in invitation) or sign-up (with the organization’s name). Answers the provider’s address for the browser to go to; the flow is kept in a ten-minute cookie.

provider
required
string
Media typeapplication/json
object
purpose
required
null | string
invitation
required
null | string
name
required
null | string

Example generated

{
"purpose": "example",
"invitation": "example",
"name": "example"
}

OK

Media typeapplication/json
object
address
required
string

Example generated

{
"address": "example"
}

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}