Validate an authorization request
Entry point for the Connect your GC Store flow. Validates the
client_id, redirect_uri, and requested scope and returns the
information the consent page needs to render.
Authentication: None required — this is a public endpoint. Validation errors are returned as JSON error responses, never as redirects (prevents open redirect attacks).
Rate limit: 60 requests/hour and 30 per 10 minutes per IP address.
curl --request GET \
--url https://api.tybritelabs.com/v1/connect/authorizeimport requests
url = "https://api.tybritelabs.com/v1/connect/authorize"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.tybritelabs.com/v1/connect/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tybritelabs.com/v1/connect/authorize",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tybritelabs.com/v1/connect/authorize"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tybritelabs.com/v1/connect/authorize")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tybritelabs.com/v1/connect/authorize")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"valid": true,
"client": {
"client_id": "anvil",
"name": "Anvil",
"description": "AI-powered storefront generation — connect your store to generate a fully functional storefront in minutes.",
"logo_url": "https://anvil.tybritelabs.com/logo.png"
},
"request": {
"redirect_uri": "https://yourapp.com/callback",
"scopes": [
"read",
"orders:read"
],
"mode": "store",
"store_hint": null,
"state": "a8f3d2e1c9b7",
"environment": "sandbox",
"receives_webhooks": true
}
}Query Parameters
Space-separated list of permission scopes your application is requesting. Scopes are
enforced per request — a token is rejected with 403 insufficient_scope if it calls an
endpoint it wasn't granted the matching scope for. Request only what your app needs.
Available scopes: read, write, products:read, categories:read, pricing:read,
cms:read, shipping:read, search:read, recommendations:read, promotions:read,
gift_cards:read, store:read, orders:read, orders:write, customers:read,
customers:write, payments:read, payments:write, cart:write, reviews:read,
reviews:write, messaging:read, messaging:write, returns:read, returns:write,
disputes:read, disputes:write, b2b:read, b2b:write, agent:read, agent:write,
shopper_subscriptions:read, shopper_subscriptions:write, fulfilment:read, team:read,
storefront_site:write, ab_attribution:write, support_tickets:write,
storefront_template:write
payments:write is required to initiate a payment; without it (or write) the call returns
403 forbidden. b2b:* is offered only for wholesale stores and disputes:* only for
marketplaces. The app's publishable key never carries write, orders:*, customers:*,
payments:* or b2b:write; those belong to its secret key.
Sign-in scopes: openid, email, profile return the signed-in person in the token
response. With no other scope the request is identity-only: any user can approve it, no store
is linked and no keys are issued. Combined with store scopes the person must own the store
they link, and a user who owns none is redirected with error=access_denied and
error_description=no_owned_store. team:read lets the key pair call GET /v1/connect/team
and must accompany another store scope.
storefront_site:write lets the key pair report the storefront's address and routes with
PUT /v1/storefront/site. ab_attribution:write lets it register its own A/B experiments and
read the paid orders and sales for each variant under /v1/storefront/experiments; the consent
screen states this to the merchant in its own line. support_tickets:write lets it open support
requests for the merchant with POST /v1/storefront/tickets and read where each stands;
storefront_template:write lets it offer templates under /v1/storefront/templates, which the
merchant accepts or declines. All four are for the secret key only.
curl --request GET \
--url https://api.tybritelabs.com/v1/connect/authorizeimport requests
url = "https://api.tybritelabs.com/v1/connect/authorize"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.tybritelabs.com/v1/connect/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tybritelabs.com/v1/connect/authorize",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tybritelabs.com/v1/connect/authorize"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tybritelabs.com/v1/connect/authorize")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tybritelabs.com/v1/connect/authorize")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"valid": true,
"client": {
"client_id": "anvil",
"name": "Anvil",
"description": "AI-powered storefront generation — connect your store to generate a fully functional storefront in minutes.",
"logo_url": "https://anvil.tybritelabs.com/logo.png"
},
"request": {
"redirect_uri": "https://yourapp.com/callback",
"scopes": [
"read",
"orders:read"
],
"mode": "store",
"store_hint": null,
"state": "a8f3d2e1c9b7",
"environment": "sandbox",
"receives_webhooks": true
}
}
