ShawDocs
API Reference

Organization

Inspect your authenticated profile, active workspace memberships, and create or rename organizations.

Download spec
GET
/api/me

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X GET 'https://shaw.ai/api/me'
Example Response
null

Create an organization

POST
/api/organizations

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Request Body

application/json
  1. body
name*string

The new organization's name.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X POST 'https://shaw.ai/api/organizations' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
null

Rename an organization

PATCH
/api/organizations/{id}

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Path Parameters

id*string

The organization id.

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Request Body

application/json
  1. body
name*string

The new name.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X PATCH 'https://shaw.ai/api/organizations/string' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
null