コンテンツにスキップ
トレカクラウド
Esc
↑↓移動↵開く⌘Jプレビュー

個体の写真を取得する

数分だけ有効な署名付きURLへ302で転送します。必要なら画像を取り込んで自分で保管してください。

GET/inventory/items/{id}/photos/{side}
Authorization
AuthorizationOAuth2 access token · headerrequired

認可コードフロー(PKCE S256 必須)。認可・トークン・更新のリクエストには resource=https://api.toreca-cloud.com/partner/v1 を付けます。アクセストークンは15分、リフレッシュトークンは90日有効で、更新のたびに入れ替わります。

Scopes:inventory:read
Path parameters
idstring<uuid>required
sidestringrequired
Allowed:frontback
Responses
302

署名付きURLへの転送

404

not_found

errorstringrequired

エラーのコード

scopestring

insufficient_scope のとき、足りない権限

503

photo_unavailable

errorstringrequired

エラーのコード

scopestring

insufficient_scope のとき、足りない権限

Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://api.toreca-cloud.com/partner/v1/inventory/items/497f6eca-6276-4993-bfeb-53cbbbba6f08/photos/front' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
Response
署名付きURLへの転送