Get authenticated identity
GET
/v1/me
const url = 'https://api-v1.tailwind.ai/v1/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api-v1.tailwind.ai/v1/me \ --header 'Authorization: Bearer <token>'Return the organization ID, customer ID, and scopes associated with the credentials making the request. Useful as a first call to verify authentication.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Authenticated caller identity
Media typeapplication/json
object
data
object
orgId
Organization ID
string
custId
Customer ID
string
scopes
Scopes granted to the credentials
Array<string>
meta
object
requestId
Unique request ID for debugging
string
Examplegenerated
{ "data": { "orgId": "example", "custId": "example", "scopes": [ "example" ] }, "meta": { "requestId": "example" }}Authentication required or invalid bearer credentials
Media typeapplication/json
object
error
object
code
Error code
string
message
Error message
string
reason
Machine-readable denial reason. Present on PAYMENT_REQUIRED errors: insufficient_credits, trial_exhausted, no_access, account_not_connected.
string
meta
object
requestId
Unique request ID for debugging
string
Example
{ "error": { "code": "UNAUTHORIZED", "message": "Invalid API key" }, "meta": { "requestId": "abc123" }}Rate limit exceeded
Media typeapplication/json
object
error
object
code
Error code
string
message
Error message
string
reason
Machine-readable denial reason. Present on PAYMENT_REQUIRED errors: insufficient_credits, trial_exhausted, no_access, account_not_connected.
string
meta
object
requestId
Unique request ID for debugging
string
Example
{ "error": { "code": "RATE_LIMIT_EXCEEDED", "message": "Daily rate limit of 5000 requests exceeded. Resets at midnight UTC." }, "meta": { "requestId": "abc123" }}