Query
query WorkspaceCursorIntegration {
workspaceCursorIntegration {
id
tokenPreview
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
updatedAt {
unixTimestamp
iso8601
}
updatedBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
}
}Response
{
"data": {
"workspaceCursorIntegration": {
"id": "id",
"tokenPreview": "string",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor",
"userId": "id",
"user": {
"__typename": "User"
}
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"updatedBy": {
"__typename": "UserActor",
"userId": "id",
"user": {
"__typename": "User"
}
}
}
}
}Queries
workspaceCursorIntegration
Returns the workspace’s Cursor integration, or null if none has been configured.
QUERY
workspaceCursorIntegration: WorkspaceCursorIntegrationReturns
id
ID!
tokenPreview
String!
A redacted preview of the Cursor API token (e.g. test-cur...-123). The full token is never returned after creation.
createdAt
createdBy
updatedAt
updatedBy
Query
query WorkspaceCursorIntegration {
workspaceCursorIntegration {
id
tokenPreview
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
updatedAt {
unixTimestamp
iso8601
}
updatedBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
}
}Response
{
"data": {
"workspaceCursorIntegration": {
"id": "id",
"tokenPreview": "string",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor",
"userId": "id",
"user": {
"__typename": "User"
}
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"updatedBy": {
"__typename": "UserActor",
"userId": "id",
"user": {
"__typename": "User"
}
}
}
}
}Was this page helpful?

