GET /me read scope
Checks a key and shows who it belongs to. user is the key's owner for a personal key, or whoever made a workspace key.
curl https://customcommercials.ai/api/v1/me -H "Authorization: Bearer $CC_API_KEY"Response
{
"key": { "id": "…", "name": "Build server", "kind": "personal", "scopes": ["read", "write"], "rateLimitPerMinute": 120 },
"user": { "id": "…", "name": "Sam", "email": "sam@example.com", "role": "owner" },
"account": { "id": "…", "name": "Acme", "kind": "agency" },
"workspace": { "id": "…", "name": "Acme", "kind": "agency" }
}