curl --request GET \
--url https://api.scripe.io/v1/workspaces/context \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scripe.io/v1/workspaces/context"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scripe.io/v1/workspaces/context', 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.scripe.io/v1/workspaces/context",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.scripe.io/v1/workspaces/context"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.scripe.io/v1/workspaces/context")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scripe.io/v1/workspaces/context")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"workspace": {
"id": "org_2abcDEF",
"name": "<string>",
"plan": "ADVANCED",
"features": {}
},
"principal": {
"type": "api_key",
"id": "key_a1b2c3d4e5f6g7h8",
"scopes": [
"<string>"
]
},
"requireReviewWorkflow": true,
"projects": [
{
"id": "proj_a1b2c3d4e5f6g7h8",
"name": "<string>",
"type": "PERSONAL_BRAND",
"typeLabel": "LinkedIn Account",
"status": "ACTIVE",
"username": "lukematthws",
"avatarUrl": "<string>",
"isActive": true,
"createdAt": "2023-11-07T05:31:56Z",
"linkedIn": {
"state": "revoked",
"canPublish": true,
"connectionStatus": "CONNECTED",
"lastValidatedAt": "2023-11-07T05:31:56Z",
"accessTokenExpiresAt": "2023-11-07T05:31:56Z",
"detail": "<string>",
"reconnectUrl": "<string>"
},
"streak": {
"currentStreak": 123,
"longestStreak": 123
}
}
],
"projectsTruncated": true
}{
"error": {
"code": "not_found",
"message": "<string>",
"request_id": "req_a1b2c3d4e5f6",
"docs_url": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"request_id": "req_a1b2c3d4e5f6",
"docs_url": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"request_id": "req_a1b2c3d4e5f6",
"docs_url": "<string>",
"details": "<unknown>"
}
}One-call workspace overview
The /workspaces/me block plus the workspace review gate and
up to 25 projects enriched with stored LinkedIn connection
health and posting streaks. The LinkedIn block reports the
STORED status as of lastValidatedAt — this endpoint never
probes LinkedIn live. projectsTruncated: true means the
workspace has more than 25 projects; page the rest via
GET /projects. Requires the workspace:read scope.
curl --request GET \
--url https://api.scripe.io/v1/workspaces/context \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scripe.io/v1/workspaces/context"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scripe.io/v1/workspaces/context', 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.scripe.io/v1/workspaces/context",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.scripe.io/v1/workspaces/context"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.scripe.io/v1/workspaces/context")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scripe.io/v1/workspaces/context")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"workspace": {
"id": "org_2abcDEF",
"name": "<string>",
"plan": "ADVANCED",
"features": {}
},
"principal": {
"type": "api_key",
"id": "key_a1b2c3d4e5f6g7h8",
"scopes": [
"<string>"
]
},
"requireReviewWorkflow": true,
"projects": [
{
"id": "proj_a1b2c3d4e5f6g7h8",
"name": "<string>",
"type": "PERSONAL_BRAND",
"typeLabel": "LinkedIn Account",
"status": "ACTIVE",
"username": "lukematthws",
"avatarUrl": "<string>",
"isActive": true,
"createdAt": "2023-11-07T05:31:56Z",
"linkedIn": {
"state": "revoked",
"canPublish": true,
"connectionStatus": "CONNECTED",
"lastValidatedAt": "2023-11-07T05:31:56Z",
"accessTokenExpiresAt": "2023-11-07T05:31:56Z",
"detail": "<string>",
"reconnectUrl": "<string>"
},
"streak": {
"currentStreak": 123,
"longestStreak": 123
}
}
],
"projectsTruncated": true
}{
"error": {
"code": "not_found",
"message": "<string>",
"request_id": "req_a1b2c3d4e5f6",
"docs_url": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"request_id": "req_a1b2c3d4e5f6",
"docs_url": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"request_id": "req_a1b2c3d4e5f6",
"docs_url": "<string>",
"details": "<unknown>"
}
}Authorizations
Pass Authorization: Bearer scripe_sk_live_<...> (or
scripe_sk_test_<...> for test keys) on every request. Keys
are scoped to a single workspace and can be revoked from the
Scripe dashboard.
The same header also accepts an OAuth 2.1 access token
(scripe_oat_*); both credentials share one scope vocabulary
and every operation below documents the scope it requires.
An API key can hold every scope named on this surface except
webhooks:manage, which is grantable to OAuth tokens only
today — the webhook-endpoint operations answer
403 scope_missing to every API key. Operations that name no
scope accept any valid token of the workspace.
Headers
Pin the API version. Format YYYY-MM-DD. Omit to receive the
currently rolling default. Unknown versions return 400 version_unsupported.
"2026-08-10"
Response
Workspace context pack.
Show child attributes
Show child attributes
The credential this request authenticated with. API keys and
OAuth tokens carry different fields — an OAuth token names the
host, the consenting human, and the project that writes fall
back to when a call omits projectId.
- Option 1
- Option 2
Show child attributes
Show child attributes
25Show child attributes
Show child attributes