API reference

Links

Send USDF by link.

On this page

POST/v1/links

Creates a claimable USDF link.

Auth: Session, not an API key: Authorization: Bearer <session token>. See Sign in.

NameTypeRequiredDescription
unitsstring or integerYesHow much, in USDF base units.
memostringNoA note for the recipient.
expires_in_daysintegerNoWhen an unclaimed link returns to you.
to_x_handlestringNoAn X handle: only the X account behind it can claim.

POST /v1/links

curl
curl -X POST https://api.usdf.fi/v1/links \
  -H "Authorization: Bearer $SESSION" \
  -H "Content-Type: application/json" \
  -d '{"units": "<units>", "memo": "Thanks"}'

POST/v1/links/{token}/claim

Claims the link's USDF.

Auth: Session, not an API key: Authorization: Bearer <session token>. See Sign in.

NameTypeRequiredDescription
tokenstringYesPath. The link token.
identity_tokenstringNoThe sign-in's identity token, for a link to an X handle.

POST /v1/links/{token}/claim

curl
curl -X POST https://api.usdf.fi/v1/links/{token}/claim \
  -H "Authorization: Bearer $SESSION"

POST/v1/links/{id}/cancel

Cancels an unclaimed link.

Auth: Session, not an API key: Authorization: Bearer <session token>. See Sign in.

NameTypeRequiredDescription
idstringYesPath. The link id.

POST /v1/links/{id}/cancel

curl
curl -X POST https://api.usdf.fi/v1/links/{id}/cancel \
  -H "Authorization: Bearer $SESSION"
Foundry documentation

Confirm it's you

Confirm to continue the action you started.

Checking confirmation options…