Start signing in with a Microsoft, Google or Apple account
POST
/api/auth/accounts/{provider}/start
const url = 'https://forge.example.com/api/auth/accounts/example/start';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"purpose":"example","invitation":"example","name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”provider
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
purpose
required
null | string
invitation
required
null | string
name
required
null | string
Example generated
{ "purpose": "example", "invitation": "example", "name": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
address
required
string
Example generated
{ "address": "example"}default
Section titled “default”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"}