Browser access
Sign in
Sign in and create a browser session.
POST
/
v1
/
auth
/
session
Sign in
curl --request POST \
--url https://api.getmillwork.dev/v1/auth/session \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>",
"redirect_uri": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({code: '<string>', redirect_uri: '<string>'})
};
fetch('https://api.getmillwork.dev/v1/auth/session', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"application": {
"applied_at": "2023-11-07T05:31:56Z",
"contact_email": "<string>",
"requested_display_name": "<string>",
"status": "pending"
}
}{
"display_name": "<string>",
"identity": {
"email": "<string>",
"name": "<string>",
"subject": "<string>"
},
"is_demo": true,
"role": "owner",
"tenant_id": "<string>",
"access_mode": "service",
"agreement_generation": 123,
"retrieval_end": "2023-11-07T05:31:56Z"
}{
"instance": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": 123,
"title": "<string>",
"type": "<string>",
"current_offer": {
"content_markdown": "<string>",
"display_label": "<string>",
"document_id": "<string>",
"offer_id": "<string>",
"published_url": "<string>",
"source_sha256": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version_id": "<string>"
},
"current_organization": {
"legal_entity_name": "<string>",
"profile_revision": 2
},
"detail": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"reason": "agreement_terminated",
"retry_after_s": 123
}{
"instance": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": 123,
"title": "<string>",
"type": "<string>",
"current_offer": {
"content_markdown": "<string>",
"display_label": "<string>",
"document_id": "<string>",
"offer_id": "<string>",
"published_url": "<string>",
"source_sha256": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version_id": "<string>"
},
"current_organization": {
"legal_entity_name": "<string>",
"profile_revision": 2
},
"detail": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"reason": "agreement_terminated",
"retry_after_s": 123
}⌘I
Sign in
curl --request POST \
--url https://api.getmillwork.dev/v1/auth/session \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>",
"redirect_uri": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({code: '<string>', redirect_uri: '<string>'})
};
fetch('https://api.getmillwork.dev/v1/auth/session', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"application": {
"applied_at": "2023-11-07T05:31:56Z",
"contact_email": "<string>",
"requested_display_name": "<string>",
"status": "pending"
}
}{
"display_name": "<string>",
"identity": {
"email": "<string>",
"name": "<string>",
"subject": "<string>"
},
"is_demo": true,
"role": "owner",
"tenant_id": "<string>",
"access_mode": "service",
"agreement_generation": 123,
"retrieval_end": "2023-11-07T05:31:56Z"
}{
"instance": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": 123,
"title": "<string>",
"type": "<string>",
"current_offer": {
"content_markdown": "<string>",
"display_label": "<string>",
"document_id": "<string>",
"offer_id": "<string>",
"published_url": "<string>",
"source_sha256": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version_id": "<string>"
},
"current_organization": {
"legal_entity_name": "<string>",
"profile_revision": 2
},
"detail": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"reason": "agreement_terminated",
"retry_after_s": 123
}{
"instance": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": 123,
"title": "<string>",
"type": "<string>",
"current_offer": {
"content_markdown": "<string>",
"display_label": "<string>",
"document_id": "<string>",
"offer_id": "<string>",
"published_url": "<string>",
"source_sha256": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version_id": "<string>"
},
"current_organization": {
"legal_entity_name": "<string>",
"profile_revision": 2
},
"detail": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"reason": "agreement_terminated",
"retry_after_s": 123
}