Automation for clients

Stage 1 · Lesson 7 of 8

API keys and OAuth

How automation works

Apps need to know who is calling them. The simplest way is an : a long secret sent in a with each request. Whoever holds the key can act as that account, like a spare house key.

So store it in the tool's credentials section, never in a workflow field or a shared document. is the "Sign in with Google" style of connecting. The account owner approves a set of permissions, called scopes.

The tool then receives a token, a pass that can be revoked (switched off) at any time without changing a password. Most built-in use OAuth. Custom HTTP calls often need a key.

This matters later when you build for clients: whose account a credential belongs to decides who controls the data.

Common trapapproving every scope offered when you need two.

A question to check yourself, an AI practice session and 2 cheat sheet entries come with the full roadmap. Unlock

Resources for this stage

Start with· follow one of these

  • GuideFree
    MDN: HTTP

    Mozilla · Beginner

    Read the overview, methods, status codes and headers pages: the HTTP every automation tool sits on

  • GuideFree
    JavaScript.info

    Ilya Kantor

    The JSON methods and objects chapters teach you to read and reshape the data each step passes on

Practise

  • Call real APIs by hand, see status codes and headers, before you build anything around them

  • Get a throwaway URL and see exactly what an app sends in a webhook

Keep handy

  • A map of API concepts, from REST and auth to rate limiting, to check what you have not met yet

  • Clear chapters on OAuth flows and scopes for when "Connect your account" stops being magic

Also worth your time

Mark this stage as not done?