api_home
The API homepage is the starting point for the Foxy hypermedia API. The link relations returned depend on the scope of your OAuth token:
- No token or client-only token: Links to create a client, create a user, and the token endpoint.
- User-scoped token: Links to the authenticated user, their stores, and (if a store is selected) the current store.
- Store-scoped token: All of the above plus a link to the current store and the encode endpoint.
As a hypermedia API, this is where you begin navigating. Follow the link relations to discover available resources rather than constructing URLs manually.
Actions
Properties (1)
message String · Read-only A welcome message with basic guidance for using the API.
Link Relations (12)
self Your API starting point. https://api.foxycart.com/rels Custom Link Relationships supported by this API. Only present when no client is associated with the current token.
Only present when a client is associated with the token but no user or store is set.
Only present when a client exists but no user is associated with the token.
Only present when a user is associated with the token.
Only present when a user is associated with the token.
Only present when both a user and store are associated with the token.
fx:reporting GET Reporting endpoint. Only present when a client, user, or store is associated with the token.
fx:encode POST POST here to encode a body of HTML for use with HMAC cart encryption. Only present when a store is associated with the token.
Example Representation
{
"_links": {
"curies": [
{
"name": "fx",
"href": "https://api.foxycart.com/rels/{rel}",
"templated": true
}
],
"self": {
"href": "https://api.foxycart.com/",
"title": "Your API starting point."
},
"fx:property_helpers": {
"href": "https://api.foxycart.com/property_helpers",
"title": "Various helpers used for determining valid property values."
},
"fx:token": {
"href": "https://api.foxycart.com/token",
"title": "The OAuth token endpoint."
},
"https://api.foxycart.com/rels": {
"href": "https://api.foxycart.com/rels",
"title": "Custom Link Relationships supported by this API."
}
},
"message": "Welcome to the FoxyCart API! Our hope is to be as self-documenting and RESTful as possible. Please let us know if you have any questions by emailing us at helpdesk@foxycart.com. Your first action should be to create an OAuth Client, then a user, followed by a store."
}