Retrieve an item by ID
GEThttps://api.styld.ai/api/store/:storeId/items/:itemId
Retrieve an item by ID
Request
Path Parameters
storeId stringrequired
itemId stringrequired
Responses
- 200
- 401
- 404
- 500
Item retrieved successfully
- application/json
- Schema
- Example (from schema)
Schema
id string
title string
description string
link string
image string
store string
tags string[]
properties
object
{
"id": "string",
"title": "string",
"description": "string",
"link": "string",
"image": "string",
"store": "string",
"tags": [
"string"
],
"properties": {}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error string
message string
{
"error": "string",
"message": "string"
}
Resource not found
- application/json
- Schema
- Example (from schema)
Schema
error string
message string
{
"error": "string",
"message": "string"
}
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
error string
message string
{
"error": "string",
"message": "string"
}
Authorization: x-api-key
name: x-api-keytype: apiKeyin: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.styld.ai/api/store/:storeId/items/:itemId");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("x-api-key", "<API_KEY_VALUE>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear