The API key making this request
GET
/api/v1/api-key
const url = 'https://api.crossmart.io/api/v1/api-key';const options = {method: 'GET'};
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.crossmart.io/api/v1/api-keyLets a program, such as the MCP server, find the workspace its key works in.
Responses
Section titled “Responses”Media typeapplication/json
object
apiKeyId
required
string format: uuid
workspaceId
required
The one workspace the key works in
string format: uuid
role
required
string
customRole
required
The workspace’s own role, when role is CUSTOM
object
id
required
string format: uuid
name
required
string
permissions
required
What the key may do
Array<string>
Example
{ "role": "OWNER", "permissions": [ "workspace:view" ]}