Privacy policy
DRAFT, not in force. Written 23 November 2026 from what the product does today, for review by a Spanish-qualified lawyer (ALI-114). Version 0.1. Updated 2 December 2026 for the direct connections to YouTube, Facebook, Instagram and TikTok (AI-assisted pre-review,
platform-review-legal-check.md); every passage marked To verify rests on a reading of a platform's policy that the lawyer must confirm on the day.
Who we are
Castelf is run by [COMPANY LEGAL NAME], a company [TO FILL: being registered in Spain; registration number once registered] at [REGISTERED ADDRESS], tax id [NIF]. You can reach us about your data at [PRIVACY EMAIL]. [TO FILL: data protection officer's name and contact, or a statement that none is appointed, once the lawyer has answered whether one is required.] The Spanish data protection authority (Agencia Española de Protección de Datos, aepd.es) supervises us.
Our roles
- Your own account. When you sign in to Castelf, we decide what is done with your sign-in details. We are the controller of that data, and this policy covers it.
- Your organisation's content. The posts, videos, captions, channels and figures your organisation keeps in Castelf belong to your organisation. We handle them only on its instructions, under the data processing agreement it signs with us. For that data your organisation is the controller and we are its processor. Ask your organisation about how it uses that data.
- Data from the social platforms your organisation connects. When your organisation connects a YouTube channel, a Facebook Page, an Instagram professional account or a TikTok account, we receive data about that account from the platform. We handle it for your organisation, as its processor, and only to publish its posts and show it what happened to them. Because the platforms let us have this data only under their own rules, this policy also says what we receive from each platform, what we do with it, how long we keep it and how to have it deleted (below). [LAWYER TO CONFIRM: whether Castelf is a processor for all of this data, or a controller for the parts it handles to meet the platforms' own terms, such as answering a platform's deletion request from a person who is not a member of the organisation.]
What we collect about you, and why
| What | Why | Legal basis |
|---|---|---|
| Your name and email address | To create your account, sign you in, and send you sign-in, invitation and notification emails | Performance of the contract with your organisation; our legitimate interest in running the service |
| Your password (stored only as a one-way hash) | To sign you in | Performance of the contract |
| The session your browser holds, with its IP address and browser type | To keep you signed in and to protect accounts from misuse | Legitimate interest in security |
| Your role in each account and what you do in it (for example approving a post) | To apply permissions, and to keep an audit trail of who did what | Performance of the contract; legitimate interest in security and accountability |
| Your consent to a TikTok post: who gave it, when, the wording shown and the choices made on the post (privacy, comments, Duet, Stitch, commercial content) | TikTok requires each post to be sent only after a person expressly agrees to it on a screen showing TikTok's required elements; we keep the record to show that this happened | Performance of the contract; legitimate interest in showing we met TikTok's rules [LAWYER TO CONFIRM] |
| Your notifications and whether you read them, and your notification settings | To tell you when something needs your attention | Performance of the contract |
| Whether an email to your address bounced or was marked as spam | So we stop sending email that cannot arrive or is not wanted | Legitimate interest; our obligation not to send unwanted email |
| Technical logs: request ids, user and account ids, timings, errors | To run, secure and fix the service | Legitimate interest in security and reliability |
We do not use your data for advertising, we do not sell it, and we do not build profiles of you. We do not use cookies beyond those needed to keep you signed in. [ENGINEERING TO CONFIRM: whether connecting a platform sets any short-lived cookie of our own during the platform's sign-in; if so, name it here.]
Data we receive from the social platforms you connect
Your organisation connects each channel by signing in at the platform itself and agreeing there to what Castelf may do. We never ask for, see or store your platform password. The platform then gives Castelf an access key (a "token") for that account. We use only the permissions listed below.
| Platform | Permissions we ask for | What we receive and keep | What we use it for |
|---|---|---|---|
| YouTube (Google) | Upload videos (youtube.upload); read the channel (youtube.readonly); later, only if your organisation turns on revenue reporting, read the channel's revenue (YouTube Analytics, monetary scope) | The channel's id, name and picture; the ids and state of the videos we upload for you; the views, likes, comments and, if turned on, revenue figures of those videos and the channel; the access and refresh tokens | Showing you which channel you post to; uploading the videos you approve with the title, description and settings you chose; confirming they appeared; showing how they did |
| Facebook Pages (Meta) | List your Pages (pages_show_list); read the chosen Page (pages_read_engagement); publish to it (pages_manage_posts); read its statistics [TO VERIFY: the insights permission's exact name, Meta Permissions Reference] | The Page's id, name and picture; your Facebook user id as Meta gives it to apps; the Page's token; the ids and state of the posts we publish; their statistics | Letting you pick the Page; publishing the videos you approve; confirming they appeared; showing how they did |
| Instagram (Meta) | Read the professional account and publish to it (instagram_basic and instagram_content_publish, or instagram_business_basic and instagram_business_content_publish, depending on the sign-in route); read its statistics [TO VERIFY: permission names, Meta Permissions Reference] | The account's id, username and picture; the ids and state of the reels we publish; their statistics; the token | As for Facebook |
| TikTok | Read your basic profile (user.info.basic); publish videos (video.publish) [TO VERIFY: any further scope for statistics, TikTok Login Kit scopes] | Your TikTok account's id for Castelf (open_id), display name and avatar; the posting options TikTok allows your account at the time of each post; the id and final state of each post; the tokens | Showing the account you post to on the post screen; publishing the videos you approve with the options you chose; confirming the result |
What we do and do not do with this data:
- We use it only to provide the features above, which your organisation can see in Castelf. We do not sell it, rent it, use it for advertising or share it with data brokers, and we do not use it to build profiles of anyone.
- We do not use it to train AI models.
- Our staff do not look at it except when your organisation asks for support, for security, or where the law requires it; every such look is recorded (ADR-015).
- It is shared with no one else, except with our hosting providers, which keep it on our behalf in the European Union (see "Who receives it").
- Google data. Castelf's use and transfer to any other app of information received from Google APIs will adhere to the Google API Services User Data Policy, including the Limited Use requirements. [TO VERIFY: Google API Services User Data Policy, whether the Limited Use section applies to the YouTube scopes, and the exact sentence Google expects.]
- YouTube. Castelf uses YouTube API Services. By connecting a YouTube channel you agree to the YouTube Terms of Service. Google's handling of your data is described in the Google Privacy Policy. [TO VERIFY: YouTube API Services Developer Policies, the required privacy-policy elements.]
- Meta. Meta's handling of your data is described in the Meta Privacy Policy and Instagram's in the same policy. [TO VERIFY: Meta Platform Terms, section on privacy policies.]
- TikTok. TikTok's handling of your data is described in the TikTok Privacy Policy. [TO VERIFY: TikTok Developer Terms of Service, privacy policy requirements.]
How the tokens are kept
The tokens are encrypted with a key held in AWS Key Management Service and stored apart from the database, in AWS Frankfurt. Only the part of Castelf that publishes, refreshes and revokes can read them; the rest of the service, including the dashboard's server, cannot. They never appear in our database tables, logs or alarms. Each read and write is recorded with who and why, without the value.
How to remove Castelf's access
- In Castelf. An owner or admin disconnects the channel. Castelf stops posting to it at once, asks the platform to cancel its access, and deletes its tokens; if the platform cannot be reached, we keep retrying for up to 24 hours and then delete the tokens anyway.
- At the platform. You can remove Castelf's access at any time in the platform's own settings: for Google, on the Google security settings page; for Facebook, under Settings, Business integrations or Apps and websites; for Instagram, under Settings, Website permissions, Apps and websites; for TikTok, under Settings and privacy, Security, Manage app permissions. [TO VERIFY: each menu path on the day of publication.] Castelf then can no longer post to that account and marks the channel disconnected.
How to have this data deleted
- Disconnecting a channel deletes its tokens within 24 hours and its platform statistics within 7 days. The channel's name and picture are removed with it.
- Facebook and Instagram. If you remove Castelf in your Facebook or Instagram settings and ask for your data to be deleted, Meta tells us. We then delete the tokens from every connection made with your Facebook or Instagram user, the channel's profile details (name, handle, picture) and its platform statistics, and give you a confirmation code. You can see the request's status at
https://castelf.com/data-deletionwith that code. The posts and video files your organisation made in Castelf stay in its account, because they belong to the organisation, not to the platform account. [LAWYER TO CONFIRM: that keeping the organisation's posts and files is compatible with Meta's rules and the GDPR.] - You can also write to [PRIVACY EMAIL] to ask for any of this data to be deleted. We answer within one month, and delete platform data within 7 days of a request [TO VERIFY: YouTube API Services Developer Policies, deletion on request]. If the data belongs to your organisation's content, we tell your organisation.
Who receives it
We use a small number of service providers to run Castelf. Each is bound by a data processing agreement, and the full list, with what each receives and where, is at [SUB-PROCESSOR LIST URL] (subprocessors.md). Our servers, database, stored files and platform tokens are in the European Union (Frankfurt, Germany). Some providers are in the United States; where data leaves the EU, it is protected by the EU-US Data Privacy Framework or by the European Commission's standard contractual clauses.
When your organisation publishes a post, it goes to the social network your organisation chose: YouTube (Google), Facebook or Instagram (Meta), or TikTok, which Castelf reaches directly, and, until it is moved to a direct connection, LinkedIn, through our publishing provider. That network receives the video, the caption and the post's settings, and handles them under its own terms and privacy policy, as a separate controller, not as our provider. [LAWYER TO CONFIRM: the recipients' role, and whether the transfer to each is to an EU entity of the platform or to its US parent; see the sub-processor list.]
How long we keep it
- Your account details, while you are a member of an account. When an account is closed, its data, including its members' details, is deleted 30 days later.
- Sign-in sessions, until they expire or you sign out.
- Platform tokens: while the channel is connected; deleted within 24 hours of a disconnect, a brand's removal or the account's closing.
- Platform statistics: while the channel is connected; deleted within 7 days of a disconnect or a deletion request. YouTube data other than statistics (such as a channel's name and picture) is refreshed from YouTube or deleted at least every 30 days, and Castelf checks every 30 days that its access to a YouTube channel is still granted. [TO VERIFY: YouTube API Services Developer Policies, storage and refresh periods; ENGINEERING: the 30-day refresh is not built yet (
docs/findings/platform-data-rules.md, point 3).] - The record of a consent to a TikTok post: as long as the post. [LAWYER TO CONFIRM]
- The record of a Meta deletion request (a confirmation code, a one-way hash of the Meta user id, dates): kept for 1 year.
- Raw answers from our posting and generation providers and from the platforms, kept for troubleshooting, with keys and personal details removed: 30 days. Answers that carry tokens are never kept.
- Database backups: up to 7 days, then overwritten. The token store has no backup: a deleted token is gone.
- Technical logs: 90 days.
- The record that an address bounced or complained: for as long as we would otherwise email it, and at most [2 YEARS, TO CONFIRM].
Your rights
You can ask us for a copy of your data, to correct it, to delete it, to restrict or object to how we use it, and to receive it in a portable format. Write to [PRIVACY EMAIL]. We answer within one month. If your request is about your organisation's content, we pass it to your organisation, which decides. You can also complain to the AEPD.
Security
Data is encrypted in transit and at rest. Each organisation's data is kept apart in the database by row-level security, so one organisation can never read another's. Platform tokens are encrypted with their own key and kept outside the database. Access by our staff is limited to named people and every access across accounts is logged.
Changes
We will tell you by email before a change that affects you takes effect. Each version of this policy carries a number and a date, and we record which version you accepted.
Version 0.1 (draft), [DATE].