View as Markdown

SDK reference · Node SDK

prov.account.setCaptureApp

prov.account.setCaptureApp in Node SDK. Set (or clear with linkUrl: null) the app for capture links.

Signature

prov.account.setCaptureApp(params: { linkUrl: string | null; name?: string | null; iosAppId?: string | null; androidPackage?: string | null; storeUrls?: { ios?: string; android?: string } | null; }): Promise<CaptureApp>

Parameters

params{ linkUrl: string | null; name?: string | null; iosAppId?: string | null; androidPackage?: string | null; storeUrls?: { ios?: string; android?: string } | null; }Required

Request fields

link_urlstring | nullRequired
Your https universal or app link, without capture_token.
namestring | null
The app's name on the button ("Continue in {name}"), up to 40 characters.
ios_app_idstring | null
TEAMID.bundle.id of your iOS app.
android_packagestring | null
Your Android package name.
store_urlsobject | null
Shown beside the button for people without the app.
Show child attributes
iosstring
Your App Store link (apps.apple.com).
androidstring
Your Google Play link (play.google.com).

Returns

Promise<CaptureApp> The capture app.

HTTP operation

PUT /v1/attest/settings/capture_app: Set your capture app

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/settings/capture_app`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "link_url": "https://app.quillstack.example/capture",
    "name": "Quillstack",
    "ios_app_id": "ABCDE12345.example.quillstack",
    "android_package": "example.quillstack.app",
    "store_urls": {
      "ios": "https://apps.apple.com/app/id1234567890",
      "android": "https://play.google.com/store/apps/details?id=example.quillstack.app"
    }
  }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.