Skip to content

Interface: Signer ​

Builds the signed payload the private API expects. Isolated on purpose: this is the layer most likely to change, so everything that signs goes through this port and is pinned by golden vectors.

The app no longer HMACs the body. It sends signed_body=SIGNATURE.<payload> with the payload url-encoded the way Python's urllib.parse.quote_plus does (space becomes +), which is what the reference client produces.

Methods ​

sign() ​

ts
sign(payload): string;

The body to send for a payload.

Parameters ​

ParameterType
payloadstring

Returns ​

string

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.