Open a sign-in in this tab
POST/
For GoRunner’s own pages: opens a tab sign-in in the same tab when a popup is blocked.
Needs an API token with the Write permission for connections (connection:write).
Parameters
Path
attemptIdRequired · stringA sign-in started with
mode: tab.
Not for API tokens
Only the person who started the sign-in can open it, once, in the browser that started it. From code, use Start a sign-in for a new connection with a returnUrl.
Responses
- 200OK
Where to send the tab. It also sets the cookie the return needs.
- 403
FORBIDDENThe token lacks the Write permission for connections.
The workspace’s account is suspended. Nothing starts until it is resumed.
- 404
NOT_FOUNDNot a sign-in you started.
The sign-in was already opened or has ended, or isn’t a tab sign-in. Start it again.
The workspace’s account was deleted.
The sign-in couldn’t be opened.
- 503
UNAVAILABLEThis server can’t reach sign-ins now.
The account’s state couldn’t be read. Nothing started. Try again.
Any call can also answer: 401 UNAUTHORIZED · 401 TOKEN_ENDED · 403 TOKEN_SURFACE_OFF · 403 FEATURE_OFF · 403 EMBED_NOT_ALLOWED · 403 EMBED_NOT_AVAILABLE · 413 PAYLOAD_TOO_LARGE · 415 INVALID_CONTENT_TYPE · 429 RATE_LIMITED · 503 BUSY · 503 PAUSED · 503 SERVICE_UNAVAILABLE. See Errors.
Request
GORUNNER="https://api.gorunner.io"
GORUNNER_TOKEN="grt_…" # needs Write for connections
ATTEMPT_ID="your-attempt-id" # from the start
URL="$GORUNNER/api/connections/oauth2/attempts/"
URL="${URL}$ATTEMPT_ID/go"
curl -X POST "$URL" \
-H "Authorization: Bearer $GORUNNER_TOKEN"const GORUNNER = "https://api.gorunner.io";
const TOKEN = process.env.GORUNNER_TOKEN;
const ATTEMPT_ID = process.env.ATTEMPT_ID; // from the start
const res = await fetch(
`${GORUNNER}/api/connections/oauth2/attempts/` +
`${ATTEMPT_ID}/go`,
{
method: "POST",
headers: { Authorization: `Bearer ${TOKEN}` },
},
);
const { data } = await res.json();import os, requests
GORUNNER = "https://api.gorunner.io"
TOKEN = os.environ["GORUNNER_TOKEN"]
ATTEMPT_ID = os.environ["ATTEMPT_ID"] # from the start
res = requests.post(
f"{GORUNNER}/api/connections/oauth2/attempts/"
f"{ATTEMPT_ID}/go",
headers={"Authorization": f"Bearer {TOKEN}"},
)
data = res.json()["data"]Response · 200 OK
{
"data": {
"redirectUrl": "https://accounts.google.com/o/oauth2/v2/auth?…"
}
}Every field
It takes no body.
Response · 200 OK
dataobjectredirectUrlURL