SDK reference · Python SDK
prov.account.set_capture_app
prov.account.set_capture_app in Python SDK.
Signature
prov.account.set_capture_app(**fields: Any = …) -> AnyParameters
**fieldsAny
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 | nullTEAMID.bundle.idof 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
Any 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();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/attest/settings/capture_app", headers={"Authorization": "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x"}, json={
"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()