Query
query WorkspaceHmac {
workspaceHmac {
hmacSecret
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
updatedAt {
unixTimestamp
iso8601
}
updatedBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
}
}Response
{
"data": {
"workspaceHmac": {
"hmacSecret": "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
workspaceHmac
Returns the workspace’s HMAC configuration, including the secret used to sign outbound webhook and HTTP-request payloads. Returns null if no secret has been generated yet. Requires the workspaceHmac:read permission.
QUERY
workspaceHmac: WorkspaceHmacReturns
hmacSecret
String
The HMAC secret string used to sign outbound HTTP requests from Plain. Treat this value like a password — store it securely and rotate it with regenerateWorkspaceHmac if it is ever compromised.
createdAt
createdBy
The user who first generated the HMAC secret for this workspace.
updatedAt
updatedBy
The user who most recently regenerated the HMAC secret.
Query
query WorkspaceHmac {
workspaceHmac {
hmacSecret
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
updatedAt {
unixTimestamp
iso8601
}
updatedBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
}
}Response
{
"data": {
"workspaceHmac": {
"hmacSecret": "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?

