Docs
create_post_kit_link
Create a post kit for one post that has to be posted by hand (state manual, or a failed or unclear post a person chooses to post themselves). The kit is a phone-friendly page at the returned `url`: copy the text in one tap, save the media, open the app, then "Mark as posted" with the live URL. The url is returned only now; hand it to a person. Links expire after `expiresInDays` (default 14; null = never) and can be turned off with revoke_link. Creating a kit never publishes anything.
Create a post kit for one post that has to be posted by hand (state manual, or a failed or unclear post a person chooses to post themselves). The kit is a phone-friendly page at the returned url: copy the text in one tap, save the media, open the app, then "Mark as posted" with the live URL. The url is returned only now; hand it to a person. Links expire after expiresInDays (default 14; null = never) and can be turned off with revoke_link. Creating a kit never publishes anything.
Access and cost
- Kind: mutation
- Scope: workspace
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: false
Input schema
{
"properties": {
"workspaceId": {
"format": "uuid",
"type": "string"
},
"postId": {
"format": "uuid",
"type": "string"
},
"expiresInDays": {
"anyOf": [
{
"maximum": 90,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": 14
}
},
"required": [
"workspaceId",
"postId"
],
"type": "object"
}Output schema
{
"additionalProperties": false,
"properties": {
"postKitLink": {
"additionalProperties": false,
"properties": {
"id": {
"format": "uuid",
"type": "string"
},
"workspaceId": {
"format": "uuid",
"type": "string"
},
"postId": {
"format": "uuid",
"type": "string"
},
"expiresAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"revokedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"lastUsedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"createdByAccountId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"createdByAgentClientId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"format": "date-time",
"type": "string"
}
},
"required": [
"id",
"workspaceId",
"postId",
"expiresAt",
"revokedAt",
"lastUsedAt",
"createdByAccountId",
"createdByAgentClientId",
"createdAt"
],
"type": "object"
},
"token": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"postKitLink",
"token",
"url"
],
"type": "object"
}Errors
[
"not_manual"
]Annotations
{
"destructiveHint": false,
"idempotentHint": false,
"openWorldHint": false,
"readOnlyHint": false,
"title": "Create a post kit link"
}