# Welcome to Sponsus!

![](https://4047744281-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-_Uc7jBXRABqaCUX99%2F-M-eakUvEGPysDVsZXIn%2F-M-ecDJ9aO9NndHFKtgd%2Funknown.png?alt=media\&token=ec6df1d3-1ae8-43ed-88c8-99d1567bf1ce)

Have a question? Join our public Discord and talk directly with the developers and staff! [Click here to be invited](https://sponsus.org/discord)!

### Have an idea for a guide?

Feel free to let us know by emailing us at <developers@sponsus.org>!


# Writing good looking posts

A guide to Sponsus's Markdown flavour.

Writing posts that look good is as easy as pie with Sponsus. There are some small caveats that need to be addressed however as well as some notes on how to actually write the content. But once you finish this guide, you will be ready to rock on Sponsus!

### Types of post

Sponsus supports multiple different types of post where each one has a different layout designed to make the featured content look the best. The default type is "text" which is just the content of the post. The other types are image, video, audio, and poll.

To change the post type you can click this dropdown and select the type:

![](https://4047744281-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-_Uc7jBXRABqaCUX99%2F-MKvEnSKE1Dph0VjOvH-%2F-MKvITL8er7H9S6YVQVc%2Ffirefox_pkybko082X.png?alt=media\&token=739ef088-9da9-4ca1-8b50-0ad05071c872)

#### The types of post

{% tabs %}
{% tab title="Images post" %}
This are the second most popular type of post on Sponsus as it allows you to feature 1 or more images on your feed as well as still give you access to write a full length text post. When creating an image post, you will be given the option of adding images under the content segment. Here you can select some images to use in the gallery or just one to feature the single image.
{% endtab %}

{% tab title="Video post" %}
Video posts work the same as image posts however they are limited to 1 video per post. If you wish to embed more, you can use the image syntax with a Youtube or Vimeo link to create a video inside the post's content.
{% endtab %}

{% tab title="Audio post" %}
This allows you to feature an audio file with the options of selecting a cover image, background and more. This one is pretty straight forward as to what it does.
{% endtab %}

{% tab title="Poll post" %}
&#x20;You can query your audience and gather feedback using this type.
{% endtab %}
{% endtabs %}

### On the subject of images

Images on Sponsus are unique to some platforms as we have a few more features that other Markdown websites dont support. The first big note is that images look best when they are on their own line. This means seperating the image with empty lines above and below it. This means that the post will center and resize the image to look best on any device that views your wonderful post. An example of the recommended spacing:

```
Dogs are pretty rad. Heres a dog to prove it:

![A dog pic, so adorable!](https://example.com/dog)

Some more stuff about how cool dogs are.
```

When you insert images, Sponsus will push the image to be on its own line however you can position the image as you like.

Another important factor about images on Sponsus is that you can annotate images by adding text between the square brackets. In our example above, the text "A dog pic, so adorable!" will show up below the image.

### Embeding external content on your posts

Embeds are a way to share content from others sites on Sponsus. We support almost any site however there are some that get special blocks. These special websites get extra goodies when we embed them into a post. For example, you can embed a SoundCloud song, album or profile, you can also embed the Spotify player. If you so wanted, you can embed a Google Doc or even a YouTube video.&#x20;

To embed content into your post, all you have to do is create an empty link with a url to the content you want to embed. For example: `[](https://sponsus.org/u/cerulean)`. Notice how there is not a "!" at the start and the fact that the square brackets hold no text. This tells our server to generate an embed below the paragraph the link is in. This is effectively a link but without the text. This special syntax will ask the url for its embed and place it at the end of the paragraph the empty link was in.


# Understanding your analytics

Analytics can be hard sometimes, thats why we wrote this guide to help you!

### Whats a traffic source?

A traffic source is the website where users are coming from to see your content.

### What are campaigns?

Campaigns are a marketing term for a collection of social media posts. Think of it like a grouping mechanism so you can quickly see how effective your sharing was. You can post a link ending with `?utm_source=your-campaign-name` and it will track how many people viewed your profile/post with that campaign. You can put whatever you wish as the name, so long as its not too long.

In the example below, when a user clicks the link they will trigger the campaign counter to go up by 1. If the campaign is new, it will be marked as such in the dashboard.

```
https://sponsus.org/u/cerulean?utm_source=TwitterShareExample
```

![](https://4047744281-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-_Uc7jBXRABqaCUX99%2F-M0PH_TUSucVyFP7zyKG%2F-M0TlbHSbdH-G0sbX16Z%2F8PDaodiudh.png?alt=media\&token=013cabb4-53fd-42ed-a13c-d9396f37bd6a)

#### Default campaigns

Sometimes, Sponsus will use campaigns to help with internal statistics. If you see a campaign that you dont recognise, it is most likely an internal campaign. The best example is the Discord bot. It will send users who are interested to your profile with a campaign of `discord:profile`.

### Why cant I see all of my traffic?

User privacy is one of our core values. Because of this, our analytics suite does not track people who have set the "Do Not Track" feature on most browsers or have installed adblocking software. Unfortunately, because of this your analytics may be off by 5-10%. If you want to get a more accurate number of visits, it is a good idea to consider adding 10% to the final number to account for this blind spot.

## FAQ

### Are my insights live?

Yes, and no. It depends on how many people are on the site at the same time. To reduce stress, we have a queue that processes requests at a constant pace. It may not show up right away, but give it a few minutes for it to process.


# Writing mass messages to your sponsors

To make your life easier, Sponsus has a template engine that allows you to personalise your message without needing to write anything extra.

### How to use the template engine

The message box that you type into is what is refered as a template. We use this text that you type as a basis for what to send to the user. You can type specially coded letters and words to tell the template engine how to handle a bit of text.

For example, by typing `{{user.username}}` into the box, it will replace that bit with "Cerulean" (or whomever you have selected).

### Cheatsheet

You can copy paste these bits into your mass message to personalise it to your liking.

#### The insert-ables

| Code                | Description                                          |
| ------------------- | ---------------------------------------------------- |
| `{{user.username}}` | This is replaced by the users username.              |
| `{{lifetime}}`      | The amount the user has sponsored you since joining. |
| `{{tier.price}}`    | The tier's price that they are sponsoring you for.   |
| `{{tier.title}}`    | The tier's name.                                     |

#### Using IFs and such

You can also include extra bits for people who have given extra. By including an IF block, you can limit the text to people who pass the gate.

| Code                                                                                                | Description                                                                                            |
| --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| <p><code>{{if lifetime '>' 20}}</code></p><p><code>Your text.</code></p><p><code>{{/if}}</code></p> | <p>If the user has given you more than 20,<br>they will be able to see the text between the blocks</p> |


# Getting your Discord rewards

## Step 1: Sponsor a creator with Discord rewards

To get Discord rewards, you should ensure the creator you are sponsoring has Discord rewards to give. You can make sure by going to their profile and looking for a button similar to this:

![](https://4047744281-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-_Uc7jBXRABqaCUX99%2F-M89T5naNwLeTo-w1jKC%2F-M89UfUrX27fi5bH03C4%2Ffirefox_wVibffyyJ9.png?alt=media\&token=07dabd02-9fa8-4739-b293-377d1960b991)

Once you have synced your account to Sponsus, you will not have to do this every time. The bot will automaticly give you your roles when you donate or sponsor someone.

## Step 2: Connecting your Discord account to Sponsus

Once you are sponsoring, you can connect your Discord to Sponsus so that SponsusBot can reward you for being amazing! To get started with syncing your account, you should go to your dashboard and click "socials". You can also just [click here](https://sponsus.org/dashboard/socials/discord). Once you arrive back to Sponsus, please continue reading as you need to get the roles.

#### Resyncing your rewards on the dashboard

To resync via the dashboard, you should go to payments -> manage sponsorships and then click the resync button. This will automagicly give you all the roles you paid for.

#### Resyncing in Discord

If you send s.resync in a channel where the bot can see you this will trigger a resync of your roles. This will also give you an update log so you can spot any issues with the roles.

![](https://4047744281-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-_Uc7jBXRABqaCUX99%2F-M89RRtmPzp_sauZUOy3%2F-M89SgaIhzt0EgfdauPr%2FRiWcssvhSS.png?alt=media\&token=43fb5662-a91b-4f43-ab31-df59a40279ed)


# Payments and you

Payments can be so stressful, let us answer some of your biggest worries!

## Does Sponsus store credit cards?

**No**. Sponsus does not store credit cards, not even the post address or CVC. We use Stripe to store and protect credit card numbers as they are typed in. What happens is that when you click "add card", we ask Stripe to take whats inside the input box and "tokenize" it. The token that Sponsus gets back represents your card in future payments, allowing us to charge the card for sponsorships or donations without storing your payment information.

**Sponsus cannot, not during, not after, access your credit card numbers.**

## What is PCI compliant mean?

PCI-DSS is the global security standard for all entities that store, process, or transmit cardholder data and/or sensitive authentication data. PCI DSS sets a baseline level of protection for consumers and helps reduce fraud and data breaches across the entire payment ecosystem. It is applicable to any organization that accepts or processes payment cards.

**In summary: Any time a company has to process sensitive data, it must do so in a secure and safe manor.**

Sponsus is compliant under PCI SAQ-A. This means that Sponsus does the following to ensure your datas security:

`Card-not-present merchants (e-commerce or mail/telephone-order), that have fully outsourced all cardholder data functions to PCI DSS compliant third-party service providers, with no electronic storage, processing, or transmission of any cardholder data on the merchant’s systems or premises.`

**At no point does your credit card number hit our servers. They are encrypted and sent to Stripe in browser.**

## Why am I being asked to sign into my bank?

The **3D Secure** standard—often known by its branded names like Visa Secure, Mastercard Identity Check, or American Express SafeKey—aims to reduce fraud and provide added security to online payments. Beginning in late 2019, banks are expected to gradually start supporting a new version of 3D Secure.

Sponsus uses this feature of banks to ensure that the person signing up is doing so with a legitimate card, reducing fraud and chargebacks.

The enforcement of [Strong Customer Authentication](https://stripe.com/guides/strong-customer-authentication) (SCA) in September 2019 makes 3D Secure 2 all the more important if you are doing business in Europe. As this new regulation will require you to apply more authentication on European payments, the improved user experience of 3D Secure 2 can help reduce the negative impact on conversion.


# Our cookie policy

Super boring legal stuff.

Hello, Sponsus user! We've prepared this Cookie Policy to help you understand and feel more confident about the use of cookies, tracking pixels or similar technologies on our Services. We’ve put this Policy together as simply as we legally can, with some informal short summaries to help you understand what it means. However, the full text wording is what is important/binding legally.

#### LAST UPDATED: 09/06/2020

### ABOUT THIS DOCUMENT

This is the Cookie Policy of Sponsus Organisation LTD, (we will further call ourselves “Sponsus”). We use technologies on our online and mobile services, in particular on sponsus.org & spns.us (which we'll call the Services) to collect information that helps us improve your online experience. We refer to these technologies, which include cookies, tracking pixels or similar technologies, collectively as “cookies.” This policy explains the different types of cookies used on the Services and how you can control them. By using the Services and viewing the cookie notice that appears together with the Sponsus services, you agree that we can store and access cookies as described in this policy. This is Sponsus’s “Cookie Policy”, which explains how we use website/online cookies and how you can control them.

### WHAT IS A COOKIE?

Cookies are small text files that are stored on your computer or mobile device. They are widely used in order to make websites or other online services work or to be better or more efficient. They can do this because websites and other online services can read and write these files, enabling them to recognise you and remember important information that will make your use of them more convenient (e.g. by remembering your user preferences). Cookies are small text files stored on your device, which help to make websites/online services work and do this more efficiently.

### WHAT COOKIES ARE USED ON OUR SERVICES?

Below we list the different types of cookies we and our service providers may use on the Services. In this section we list the kinds of cookies we or our service providers use and what we use them for.

#### Essential Cookies.

These cookies are essential to the operation of our service in order to enable you to move around it and to use its features. Without these cookies services you have asked for, such as accessing secure areas of a website or paid for content, cannot be provided. We also use cookies to help prevent fraudulent use of login credentials. These cookies are essential for using the Services and therefore cannot be turned off without severely affecting your use of it.

#### Performance Cookies.

Performance cookies, which often include analytics cookies, collect information about your use of this Services and enable us to improve the way it works. For example, performance cookies show us which are the most frequently visited pages on our website, allow us to see the overall patterns of usage on the Services, help us record any difficulties you have with the Services and show us whether our advertising is effective or not. We also use cookies to help you navigate within our website and travel back to pages. ‘Performance cookies’ help us collect information about our services in order to improve them.&#x20;

#### Functionality Cookies.

In some circumstances, we may use functionality cookies. Functionality cookies allow us to remember the choices you make on the Services and to provide enhanced and more personalized features, such as customising a certain webpage, remembering if we have asked you to participate in a promotion and for other services you request, like watching a video or commenting on a profile. All of these features help us to improve your visit to the Services. In particular, Functionality Cookies on the Services include Preference Cookies which are placed to remember your preferences like language preferences. The maximum period after which these cookies expire is 12 months. ‘Functionality cookies’ help us to remember how you use our services, so that we can enhance and personalise them for you.

#### Analytics Cookies.

We use analytical tools such as Matomo or internal technologies to collect information about how visitors use our Services. For example, we can track different events like which Sponsus web pages or emails from us you actually opened and which links you clicked or analyse the traffic on our website. We use it to optimize our communications with you, to evaluate how our Services are being used, compile statistical reports on website activity and create a profile of aggregated visitors. On some of our pages we may use plugins from social media platform, such as “Like” button from Facebook. In such case your browser will send that social media platform information about the web page you visited, your IP address, and browser-related information. This occurs regardless of whether you clicked on the button or not. You can use content blocking solutions (built-in in your browser or as a separate add-on) to prevent loading such plugins. On some of our websites we may also use social media plugins such as “Like” button.

### HOW DO I CONTROL COOKIES?

Although most web browsers automatically accept cookies, you may adjust settings on your browser or device to prevent the reception of cookies, or to provide notification whenever a cookie is sent to you. Further information about the procedure to follow in order to disable cookies can be found on your Internet browser provider’s website via your help screen. Also, some of our partners are members of the Networking Advertising Initiative (“NAI”) and/or the Digital Advertising Alliance (“DAA”) – organizations who offer a single location to opt out of receiving tailored ads. If you wish not to have your information used for the purpose of serving you targeted ads, you may opt-out by visiting the DAA's Consumer Choice page and/or the NAI’s Consumer Opt-Out page. You will be still able to use our Services after disabling cookies, please be aware though that if all cookies are disabled, not all features of the Services may operate as intended. You can use your browser/device settings to control cookies at any time. Please note, that if you stop accepting all of the cookies, some features of our services may not operate at all.

### CHANGES TO THIS COOKIE POLICY

We may change this Cookie Policy at any time: please take a look at the “LAST UPDATED” date at the top of this policy to see when it was last revised. Any amendments to this Cookie Policy will come into effect a reasonable period of time after this "LAST UPDATED" date (normally we consider 30 days to be a reasonable time period) unless you contact us before that date to discuss or query any of the amendments. We can revise this Cookie Policy if necessary and it will come into effect 30 days later.

### MORE ABOUT YOUR PRIVACY

Please also check out our Privacy Policy, which gives more information about how we protect your privacy and Sponsus User Agreement to know more about our Services. Check out our privacy policy and user agreement too (link opposite).


# Getting logged in

## Method 1: API Keys

API keys are the main way that you would authenticate with the API if you were creating integrations for a single creator. These keys are restricted to the creator only so if you plan to offer the integration to the public, you should use OAuth.

To get started, you should to go [this page](https://sponsus.org/developers/keys) and follow the on screen instructions for creating a key. Once you have your key, you can use it to authenticate as you with the API by using it in the `Authorization` header like this:

{% tabs %}
{% tab title="Bash" %}

```bash
curl -H "Authorization: APIKeyGoesHere" https://api.sponsus.org/v1/profiles/@me
```

{% endtab %}

{% tab title="Python" %}

```python
import aiohttp
import asyncio

APIKey = "APIKeyGoesHere"

# AsyncIO is the future of Python ✨

async def main():
    client = aiohttp.ClientSession(loop=asyncio.get_event_loop())
    
    headers = {
        "Authorization": APIKey
    }
    
    async with client.get("https://api.sponsus.org/v1/profiles/@me") as response:
        my_profile = await response.json()
        
    # do things with my_profile!
    
asyncio.run(main())
```

{% endtab %}
{% endtabs %}

## Method 2: OAuth

To get started, you first need to create an OAuth application by [going here](https://sponsus.org/developers/oauth).

![](https://4047744281-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-_Uc7jBXRABqaCUX99%2F-M-dhMxiqyKzhQlp8Ol2%2F-M-dib54S_9VLg54kXUn%2Ffirefox_DgZkZI0GdI.png?alt=media\&token=c496f2a4-e6e8-44ed-99f6-c0afd23e47cb)

Once you have followed the instructions, you should have both an client ID and a client secret. These are both essential for OAuth to work so make sure you save them in a secure place. If you leak the client secret, people will be able to authenticate as your app which will lead to *a lot of bad things* happening.

With the client ID, you can send your users to a special URL on our domain. We have a generator for picking out what scopes you want to have access to on the page where you create your app. In the below example, the scopes picked will allow you to see who the user is as well edit the users tiers but **you should replace them with the scopes you wish to request**.

```
GET https://sponsus.org/oauth/authorize
    ?response_type=code
    &client_id=<clientID>
    &redirect_uri=<one of your redirect URIs listed in your app>
    &scope=profile.profile.read payments.tiers.write
```

You should redirect the user to this page when you need them to authorize your app.

![](https://4047744281-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-_Uc7jBXRABqaCUX99%2F-M-dhMxiqyKzhQlp8Ol2%2F-M-dnFZqeyRFX0KQNPc2%2Ffirefox_B3kPRBMQZv.png?alt=media\&token=813ae305-852a-441c-bbe1-4b68b42fef3c)

Once the user authorizes the app on our website, they will be redirected back to the redirect\_uri field. Sponsus will redirect the user with special uri params that allow you to authorize the user on your end. **You will need a method of fetching these params and sending them to a server as we do not support inline authorization, for example authorizing directly on the front end such as single-page applications.**

Now that you have the code param from the redirect, you need to send a request to our API to tell us that you have got the token and everything is in order. Our response will give you the actual OAuth key needed for using the API.

{% hint style="danger" %}
In accordance with RFC 6749, the token URL only accepts a content type of x-www-form-urlencoded. JSON content is not permitted and will return an error.
{% endhint %}

```
POST https://api.sponsus.org/v1/oauth/token
    code=<code param from step 3>
    &grant_type=authorization_code
    &client_id=<client ID>
    &client_secret=<client secret>
    &redirect_uri=<redirect_uri that was used in step 2, important for anti fraud!>
```

If your request was successful, the API will respond with your access token as well as a refresh token that can be used to re-up the token when it has expired:

```javascript
{
    "access_token": "oa2_3AQQoI56Z1CEDC7F3SVjfkQ892AV",
    "refresh_token": "oa2r_Vm8hrWGtkgNEVqKDRVt9bv1Ff6ib",
    "scope": [
        "profile.profile.read",
        "payments.tiers.write"
    ],
    "expires_in": 2592000,
    "success": true
}
```

With the new access token, we can use this to use the API like normal:

{% tabs %}
{% tab title="Python" %}

```python
import requests

headers = {
    "Authorization": "OAuthTokenGoesHere"
}

current_logged_in_user = requests.get(
    "https://api.sponsus.org/v1/profiles/@me",
    headers=headers
)
```

{% endtab %}
{% endtabs %}


# Creating a post

A guide to publishing content via the API

## Logging in

Before you can do any kind of interaction with the API, you must first make sure you have a valid API key or OAuth access token with the `posts.manage_posts.write` permission. If you dont know what this means, please read our guide on authentication with the API by clicking below:

{% content-ref url="/pages/-M-ddqLuFU8OuaCwGFVo" %}
[Getting logged in](/api/getting-logged-in)
{% endcontent-ref %}

## Creating a post programmatically

Making posts is a really simple process, all you need to do is send a few fields and we handle everything else. If you are sending any kind of data to Sponsus, it must be packaged into a JSON body. This allows us to accept data from almost every language without having to deal with compatability.

```javascript
POST https://api.sponsus.org/v1/profiles/@me
Authorization: APIKey

JSON Body:
{
    "title": "Programatic test",
    "content": "This is the content of the post! It supports **Markdown** :sparkles:",
    "price_to_view": 0,
    "type": "text",
}
```

{% hint style="info" %}
To find out what Markdown is and what you can do with it, [click here to be taken to the Writing a post guide](/guides/writing-good-looking-posts)!
{% endhint %}

These fields are always needed in a post request as these determine how we handle the post. Title and content are pretty obvious as to what they do however the `price_to_view` field controls how much someone would need to donate or sponsor in order to get access. The type field tells Sponsus what kind of post this is. It also helps with determining the required fields from other post types such as `images` or `video`.

If your request was successful, Sponsus will return this object:

```javascript
{
  "success": true,
  "postID": "1838293723792936960",
  "post_slug": "programatic-test12",
  "post_url": "/u/1729788214794915840/p/programatic-test12",
  "post": {
    "_id": "1838293723792936960",
    "title_slug": "programatic-test12",
    "type": "text",
    "title": "Programatic test",
    "content": "Content",
    "price_to_view": 0,
    "authorID": "1729788214794915840",
    "userID": "1729788214794915840",
    "created_at": 1581257591.59882,
    "published_at": 1581257591,
    "publish_at": null,
    "text_content": "Content",
    "preview_img": "",
    "is_nsfw": false,
    "is_hidden": false,
    "tags": [],
    "attachments": [],
    "status_message": "",
    "embeds": [],
    "fetching_embeds": false,
    "hearts_count": 0,
    "comments_count": 0,
    "views_count": 0,
    "latest_comments": [],
    "locked": false
  }
}
```

{% hint style="info" %}
The embeds field is processed after the post is created, check back after a few seconds to get the post embeds.
{% endhint %}

## Locking a post

{% hint style="danger" %}
The old method of locking posts has been deprecated for the `lock` method. Please read below as to how to use the new locking system.
{% endhint %}

Paywalling content is Sponsus's bread and butter. Its super simple to lock a post with the ability to extend it for advanced users.

When making a post (editing or creating a new one), you can send a "lock" object. This object tells Sponsus's API how to lock a post. This is a per-post basis to give you the most flexability.

```javascript
"lock": {
    "type": "price",
    // must be one of "disabled", "tiers", "price"
    "price": 10,
    // the minimum amount in $ a user must pay per month.
    "tiers": [
        "1811618092527259648", // an array of tierIDs you want to lock a post to
        "1738770542594494464" // this will be shown in the order you insert them.
    ],
    "allow_donations": true,
    // if the type is price then this will include donations
    // when working out if someone has enough to access the post.
    "minimum_length_of_sponsorship": 4
    // the minimum amount of months a user must sponsor in total to access
}
```

## Creating a media post (Image gallery & Video)

Since the first example is only a basic text post, lets go deeper into the API and create an image or video post. Most of the code used in the first example is reused here so I will only talk about the bits that have changed. The biggest thing that has changed with our media post is the fact that we are changing the type field to be either image or video.

### Creating a image post

```javascript
{
    ...
    "type": "image",
    "images": {
        "src": [
            "image1url",
            "image2url",
            "image3url"
        ]
    }
}
```

The `images.src` field must be an array as Sponsus image posts are galleries. If you only want to show off a single image, then just put one image url in the array. Image url must be **HTTPS** urls as security is strict on Sponsus. If you need to upload images that require&#x20;

### Creating a video post

```javascript
{
    ...
    "type": "video",
    "video": {
        "src": "https://www.youtube.com/watch?v=JsntlJZ9h1U"
    }
}
```

The video src field is different to the image src field as this takes a single video url as the input. The video urls that we support are YouTube, Twitch.tv (live only), Vimeo (public videos for now), and raw MP4 videos. If you try to use a url that is not supported, it will not show up on the website.

## Publishing a post at a later date

It is possible to create a post and then have it be published later on. This is called a draft as the API waits until the signal to publish the post to the sponsors. You can do this in a few ways, you can set the `publish_at` field during post creation to an **UTC** ISO datetime. You can also edit a post that is in the "draft" stage to have the publish\_at field as well. If the post is not already published, then when the time reaches the publish\_at time the API will publish it.

If you do not wish to have automattic publishing, you can opt for a programatic aproach by sending a GET request to `/v1/posts/<userID>/post/<postID>/publish`.3123123

{% hint style="info" %}
You will need to be authenticated with the API before you edit or publish a post! Both of these routes require `posts.manage_posts.write`.
{% endhint %}


