Crossly API setup
БесплатноБез исполняемых скриптовНе проверенSet up a Crossly (crossly.net) API integration. Pick the seller API or the buyer API, the matching client (@crossly/sdk, @crossly/buyer-sdk, Python crossly…
от crossly70 установок в других каталогахОб этом скилле
Integrate the Crossly API
Crossly has two APIs on one host with two different principals. Decide which one before writing any code:
| Seller API | Buyer API | |
|---|---|---|
| Acts on | a seller's store: inventory, listings, crossposting, orders, sales, webhooks, automations | a shopper's own cart, orders, wishlists, offers, cashback |
| Paths | /v1/* (e.g. GET /v1/listings) |
/v1/buyer/* (e.g. GET /v1/buyer/orders) |
| Spec | https://crossly.net/openapi/seller.json | https://crossly.net/openapi/buyer.json |
| Credential | a personal access token, or an OAuth access token with seller scopes (<domain>:<read|write>) |
an OAuth access token with buyer:* scopes only. There is no buyer PAT |
| TypeScript | @crossly/sdk |
@crossly/buyer-sdk |
| Python | crossly (seller) |
crossly-buyer |
The Python clients are generated from the specs and live at https://github.com/crossly-dev/crossly-python. They are not on PyPI yet: install from GitHub with pip install "git+https://github.com/crossly-dev/crossly-python#subdirectory=seller" (buyer: subdirectory=buyer); switch to pip install crossly / crossly-buyer once those names resolve.
A seller token is refused by every buyer endpoint and the reverse, even for the same Crossly account. A 401 on a call that looks right usually means the other API's token.
Setup
- Create a free Crossly account: https://crossly.net/register
- Create a personal access token at https://crossly.net/settings/api/tokens/new (guide: https://crossly.net/guides/personal-access-tokens). Use a
crossly_pat_test_token against the sandbox while building. - Export it as
CROSSLY_PATand send it asAuthorization: Bearer $CROSSLY_PATtohttps://crossly.net/api/v1/*. Full docs: https://crossly.net/docs
Base URLs and environments
- Production:
https://crossly.net/api+ the spec path, e.g.https://crossly.net/api/v1/me. - Sandbox:
https://sandbox.crossly.net/api(a separate account, seeded data, Stripe test mode). - The environment word in a credential is enforced:
crossly_pat_live_…works only on crossly.net andcrossly_pat_test_…only in the sandbox. The wrong one is401 credential_environment_mismatch. Every response names its environment in theCrossly-Environmentheader.
Credentials
From https://crossly.net/docs/api-authentication:
| Credential | Shape | Where it may be used |
|---|---|---|
| Personal access token (PAT) | crossly_pat_<live|test>_<8 hex prefix>_<32 char secret> |
Server-side only: your scripts, CI, agents. Acts as the user who minted it, with the scopes ticked. Never in a browser bundle |
| OAuth access token | a JWT (eyJ…) from https://crossly.net/atlas/oauth2/token, aud = https://crossly.net/api/v1, lives 8 h, refreshable |
A third-party app acting for a seller (seller scopes) or a shopper (buyer:* scopes). Stored server-side |
| Publishable key | crossly_pk_<live|test>_<hex> |
Public web pages only (@crossly/embed). Reads one storefront's active listings and starts a checkout, nothing else |
| Experience key | crossly_ek_<live|test>_… |
Creator back-ends only (worlds, items, game packages), from the key's IP allowlist |
| Webhook signing secret | 64 hex characters, shown once | Verifying deliveries. Never sent back to Crossly |
The PAT's 8-hex prefix segment is safe to log; the secret segment never is. Read tokens from the environment (CROSSLY_PAT), never commit them, and never put a PAT or an OAuth token in frontend code: a browser only ever gets a crossly_pk_… key.
OAuth token shapes. OAuth access tokens from Atlas are JWTs (eyJ…). @crossly/sdk 0.3.0 accepts crossly_pat_…, a JWT access token, a legacy crossly_oat_… or a cbx_… token in the pat option; @crossly/buyer-sdk 0.2.0 accepts a JWT or a legacy crossly_oat_… and refuses crossly_pat_… on purpose. Upgrade older SDK versions: 0.2.0 / 0.1.0 refused JWTs in the constructor.
First call
Seller, TypeScript (npm install @crossly/sdk):
import { createClient, CrosslyAPIError } from '@crossly/sdk';
const crossly = createClient({ pat: process.env.CROSSLY_PAT! }); // crossly_pat_… or an OAuth JWT
const me = await crossly.profile.me(); // GET /v1/me: who you are, the PAT's scopes, account state
const page = await crossly.listings.list({ page: 1, limit: 100, status: 'active' });
The SDK picks the base URL from the token (_test_ → https://sandbox.crossly.net/api); override with baseUrl. On a multi-store account pass storefrontId to createClient (or per request) to send X-Storefront-Id; without it calls act on the default store (see crossly-team-stores).
Seller, Python (installed as above):
import os
import crossly
from crossly.api import listings_api
config = crossly.Configuration(access_token=os.environ["CROSSLY_TOKEN"]) # crossly_pat_…
with crossly.ApiClient(config) as client:
page = listings_api.ListingsApi(client).list_listings(page=1, limit=25)
for item
Установить Crossly API setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Crossly API setup?
Set up a Crossly (crossly.net) API integration. Pick the seller API or the buyer API, the matching client (@crossly/sdk, @crossly/buyer-sdk, Python crossly, plain HTTP) and the right credential (crossly_pat_ personal access token, OAuth access token, crossly_pk_ publishable key), then handle base URLs, scopes, pagination, the error envelope, idempotency and rate limits. Use when starting any code that calls the Crossly API, or when a Crossly call returns 401, 403 or 429.
Как установить скилл Crossly API setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Crossly API setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic