Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
SellApp Rust SDK
Bring your catalog into a Rust application, then build from there. The SellApp SDK turns async method calls into API requests and response data into Rust types, ready for you to inspect and use.
Start with a read-only request that prints one product's ID and title.
Already know your way around? Jump to configuration, usage details, or the method index.
Install
Use a current stable Rust toolchain. This crate uses Rust edition 2024; a minimum supported Rust version has not yet been established for its full dependency graph.
Create an application, then add the SDK and Tokio, the runtime used by the async example:
The SDK is published as sellapp-sdk on crates.io. The dependency is named sellapp in your application, matching the Rust imports below. Your Cargo.toml will contain:
[]
= { = "sellapp-sdk", = "0.1.1" }
= { = "1", = ["macros", "rt-multi-thread"] }
Your first request
Your API key identifies you; your store slug selects the store. Give the key the listing ability, which grants access to the catalog. For a storefront at launch-lab.sell.app, the slug is launch-lab.
Set SELLAPP_API_KEY and SELLAPP_STORE as environment variables: settings your terminal passes to the program. This keeps your key out of source files and Git history. The authentication guide helps you get those values ready.
This complete program asks for one product and prints its ID and title. No products yet? The empty-store message still means the request worked. Save it as src/main.rs in the application above, or run the included first-request example.
.await waits for the response; ? passes a failure back to the caller. On success, page.data holds the products. That's the part to replace with your own application logic once the connection works.
use ;
use ListParams;
pub async
async
From your application directory, replace the example key and slug with your own and run these commands in a Bash-compatible shell:
This reads your real store's catalog without changing it. The example asks you to choose the URL explicitly, so missing configuration cannot send a surprise request. SELLAPP_API_BASE_URL is an example setting, not an SDK environment setting.
Account access and first-store setup
Create a user-owned key in API keys, even
before you have a store. Enable account:read for identity, store discovery and
permission inspection, and stores:create separately for store creation.
Identity, discovery, store detail by ID and creation omit X-STORE; permission
inspection and business requests select a store explicitly.
An unrestricted key covers current and future accessible stores. A selected-store
key covers only its fixed list; an empty list covers none. Membership and role
changes still apply. Selected-store keys cannot create stores. Existing keys do
not gain abilities automatically; * satisfies the new abilities while retaining
membership, role and restriction checks.
The account guide shows first-store creation, required idempotency keys, and bounded reads across several stores with partial failures. Creation returns an ID and slug; use the slug for subsequent product requests. Find your language's methods in the resource reference. CLI and MCP connections retain browser OAuth.
If the request fails
| Result | Next step |
|---|---|
| Empty product list | The read succeeded. Create a product when you are ready. |
| 401 | Check the selected credential and whether it has expired or been revoked. |
| 403 | Check the key's listing ability, selected-store restrictions and the account's current store permissions. Official CLI OAuth also requires its active grant. |
| 400 with a missing-store message | Set SELLAPP_STORE to an authorized store slug. |
| 429 | Follow Retry-After and the SDK's documented retry behavior. |
Keep the request ID when reporting an API failure. Never include credentials.
Three useful next actions
- Create and edit a product: exact signatures and complete examples.
- Read orders or create a checkout: inspect permissions and effects before changing a purchase.
- Read more than one page: pagination, request controls, errors, and retry behavior.
Reference and examples
Support and releases
Find available packages and installation instructions in the SDK guide. Report an SDK issue. Include the SDK version, runtime version, and a redacted reproduction. Licensed under MIT; see third-party notices.