Before you begin
You need an OpenPMM Account and access to a Workspace. If you do not have one, create an account from an agent. You can also sign in at app.openpmm.com.1
Create an API key
Open your workspace, then go to Workspace settings and select API keys.
Create a key and copy it immediately. OpenPMM shows the secret one time.
2
Set the API key
Set the API key in your shell. Do not commit it.
3
Verify the credential
Request the identity attached to the key.The response shows the credential environment, workspace access mode, scopes, and expiry time.
4
List workspaces
List the workspaces that the credential can use.Copy a workspace
id from the response. Set it in your shell.5
List destinations
Check which connected social accounts are available.Copy one X Destination
id. Set it in your shell.6
Create a draft Post
A draft does not contact the provider.Store the returned Post
id and version.7
Publish the Post
Send the Post ID, version, and Destination ID.
Add a unique idempotency key.
8
Inspect the Post
Use the returned Post ID.Read
terminal, action_required, retry_safety, and
available_actions. Store the receipt when the Post is published.