Skip to content

Docs

POST /get_tiktok_creator_info

https://heyeveryone.ai/api/v1/get_tiktok_creator_info

Operation

{
  "post": {
    "description": "What TikTok last said about a TikTok account (or a Sandbox account that behaves like TikTok): the creator's nickname and username, the privacy levels they may choose (privacyLevelOptions: pick privacyLevel from these; there is no default), whether they turned comments, Duet or Stitch off (then allowComment / allowDuet / allowStitch must stay false), the longest video they may post (maxVideoPostDurationSec), and canPost: false with cannotPostReason when TikTok says they can't post now (a daily cap; don't post, try later). `fetchedAt` is when TikTok answered; `stale` is true with no answer or one over five minutes old: call refresh_tiktok_creator_info, then this again. `lastError` is a failed read after that answer. Read-only; never costs credits.",
    "operationId": "get_tiktok_creator_info",
    "requestBody": {
      "content": {
        "application/json": {
          "schema": {
            "properties": {
              "workspaceId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "type": "string"
              },
              "channelAccountId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "type": "string"
              }
            },
            "required": [
              "workspaceId",
              "channelAccountId"
            ],
            "type": "object"
          }
        }
      },
      "required": true
    },
    "responses": {
      "200": {
        "content": {
          "application/json": {
            "schema": {
              "additionalProperties": false,
              "properties": {
                "channelAccountId": {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                  "type": "string"
                },
                "info": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "nickname": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "username": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "privacyLevelOptions": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "commentDisabled": {
                          "type": "boolean"
                        },
                        "duetDisabled": {
                          "type": "boolean"
                        },
                        "stitchDisabled": {
                          "type": "boolean"
                        },
                        "maxVideoPostDurationSec": {
                          "anyOf": [
                            {
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "canPost": {
                          "type": "boolean"
                        },
                        "cannotPostCode": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "cannotPostReason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "fetchedAt": {
                          "type": "string"
                        },
                        "source": {
                          "enum": [
                            "tiktok",
                            "sandbox"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "nickname",
                        "username",
                        "privacyLevelOptions",
                        "commentDisabled",
                        "duetDisabled",
                        "stitchDisabled",
                        "maxVideoPostDurationSec",
                        "canPost",
                        "cannotPostCode",
                        "cannotPostReason",
                        "fetchedAt",
                        "source"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastError": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "at": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "at"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "stale": {
                  "type": "boolean"
                }
              },
              "required": [
                "channelAccountId",
                "info",
                "lastError",
                "stale"
              ],
              "type": "object"
            }
          }
        },
        "description": "Success"
      },
      "400": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "invalid_input: the body does not match the schema"
      },
      "401": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "unauthenticated: missing, invalid, expired or revoked token"
      },
      "403": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "forbidden: the agent may not do this (for example, another workspace)"
      },
      "404": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "not_found"
      },
      "409": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "conflict"
      },
      "422": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "Service-specific errors: not_tiktok"
      },
      "429": {
        "$ref": "#/components/responses/RateLimited"
      },
      "500": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "internal_error"
      }
    },
    "summary": "Get a TikTok account's creator info",
    "tags": [
      "workspace"
    ],
    "x-heyeveryone-kind": "query"
  }
}

Referenced definitions

{
  "schemas": {
    "Error": {
      "properties": {
        "error": {
          "description": "A stable error code, for example forbidden.",
          "type": "string"
        },
        "message": {
          "description": "What went wrong, in plain words.",
          "type": "string"
        }
      },
      "required": [
        "error",
        "message"
      ],
      "type": "object"
    }
  },
  "responses": {
    "RateLimited": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "description": "rate_limited: too many requests from this agent, account or address (docs/setup/agents.md, Rate limits); wait the Retry-After seconds, then retry",
      "headers": {
        "Retry-After": {
          "description": "Seconds to wait before retrying.",
          "schema": {
            "minimum": 1,
            "type": "integer"
          }
        }
      }
    }
  }
}

Authentication

{
  "bearer": {
    "description": "Personal access token (hey_pat_...)",
    "scheme": "bearer",
    "type": "http"
  },
  "oauth": {
    "flows": {
      "authorizationCode": {
        "authorizationUrl": "https://heyeveryone.ai/oauth/authorize",
        "refreshUrl": "https://heyeveryone.ai/oauth/token",
        "scopes": {
          "agent": "Act as your agent in the workspaces you choose"
        },
        "tokenUrl": "https://heyeveryone.ai/oauth/token"
      }
    },
    "type": "oauth2"
  }
}

Security requirements

[
  {
    "bearer": []
  },
  {
    "oauth": [
      "agent"
    ]
  }
]