GET
/
profiles
/
{id}
Retrieve
curl --request GET \
  --url https://api.buybase.ai/profiles/{id} \
  --header 'authorization: <authorization>'
{
  "success": true,
  "profile": {
    "id": "prof_12345",
    "styles": [
      {
        "id": "style_12345",
        "text": "Minimalist casual style with neutral colors"
      }
    ],
    "shipping": {
      "id": "ship_12345",
      "address_1": "123 Main St",
      "address_2": "Apt 4B",
      "city": "San Francisco",
      "country": "United States",
      "province": "California",
      "zip": "94105",
      "country_code": "US",
      "province_code": "CA"
    }
  },
  "code": "PROFILE_RETRIEVED"
}

Headers

authorization
string
required
Your API key for authorization.

Path Parameters

id
string
required
The ID of the profile to retrieve.

Response

success
boolean
Indicates whether the operation was successful.
profile
object
The profile object with associated styles and shipping information.
profile.id
string
The ID of the profile.
profile.styles
array
Array of style objects associated with this profile, each containing:
  • id: The style ID
  • text: The style description
profile.shipping
object
Shipping information associated with this profile, containing:
  • id: The shipping ID
  • address_1: First line of the address
  • address_2: Second line of the address (optional)
  • city: City name
  • country: Country name
  • province: Province or state name
  • zip: Postal or ZIP code
  • country_code: Two-letter country code
  • province_code: Province or state code
code
string
A code indicating the result of the operation. Possible values:
  • PROFILE_RETRIEVED: Profile retrieved successfully
  • PROFILE_NOT_FOUND: Profile not found
error
string
Error message if the request fails.
{
  "success": true,
  "profile": {
    "id": "prof_12345",
    "styles": [
      {
        "id": "style_12345",
        "text": "Minimalist casual style with neutral colors"
      }
    ],
    "shipping": {
      "id": "ship_12345",
      "address_1": "123 Main St",
      "address_2": "Apt 4B",
      "city": "San Francisco",
      "country": "United States",
      "province": "California",
      "zip": "94105",
      "country_code": "US",
      "province_code": "CA"
    }
  },
  "code": "PROFILE_RETRIEVED"
}