Skip to main content

Overview

Want to update your SlowNet mood, bio, or blocks on a schedule?
You can use GitHub Actions to automate updates using your API key.

Example workflow

Here’s a simple .github/workflows/update-slownet.yml file that runs every Monday:
name: Update SlowNet Page

on:
  schedule:
    - cron: '0 9 * * MON' # every Monday at 9 AM UTC

jobs:
  update:
    runs-on: ubuntu-latest
    steps:
      - name: Update SlowNet mood
        run: |
          curl -X POST             'https://theslow.net/api/slownetsite/update-site-configuration'             -H 'X-API-KEY: ${{ secrets.SLOWNET_API_KEY }}'             -H 'Content-Type: application/json'             -d '{
              "mood": "🚀 Automation time!"
            }'

Storing your API key

  • Add your API key in your GitHub repo settings under Secrets and variables as SLOWNET_API_KEY.
  • Never commit your API key directly to your code.

Authentication

This endpoint requires an API key. You can retrieve an API key from your dashboard. Include it in the X-API-KEY header:
X-API-KEY: YOUR_API_KEY_HERE
For more details, see the Authentication Guide.

Need Further Assistance?

If you have any questions or encounter issues, please don’t hesitate to reach out to our support team.