What's inside a response
When you make request to the /cards/ path, one of two options will get returned to you: a successful response, or an error
Successful responses
A successful response consists of a JSON array with each entry being a single card. Each card consists of 14 key-value pairs, here is a brief description of each.
key | Data Type | Description |
---|---|---|
Name | String | The name of the card including the subtitle denoted by " - " e.g. "Elsa - Snow Queen" |
Cost | Integer | The amount of ink it costs to cast e.g. 5 |
Type | String | The type of the card including optional subtype denoted by " - " e.g. "Character", or "Action - Song" |
Color | String | The ink color of the card. e.g. "Amber", or "Steel" |
Inkable | Boolean | Whether the card can be placed into your inkwell |
Body_Text | String | All of the text in the body of the card excluding the flavor text |
Flavor_Text | String | If present, the bit of italicized lore text beneath the body text |
Artist | String | The name of the illustrator(s) that drew the card |
Rarity | String | The rarity of the card e.g. "Common", or "Super-Rare" |
Image | String | A URL linking to a 1468 x 2048 image of the card |
Set_Name | String | The name of the set that the card is in e.g. "The First Chapter" |
Set_ID | String | The three digit alphanumeric code that corresponds the card's set e.g. "TFC" |
Set_Num | Integer | Starting from 1, the number of set it is based off release order |
Date_Added | DateTime | The date that the card was added the database (In yyyy-MM-dd hh:mm) |
Date_Modified | Timestamp | The timestamp that the card was last modified in the database (in yyyy-MM-dd hh:mm:ss.s) |
Character cards however also have these additional rows added to them:
key | Data Type | Description |
---|---|---|
Classifications | String | A list of each of the classifications the card has separated by ", " e.g. "Storyborn, Ally" |
Strength | Integer | The amount of strength the card has |
Willpower | Integer | The amount of willpower the card has |
Lore | Integer | The amount of lore you receive when questing the card, |
Here is an example of a single card character response.
Here is an example of a single card non-character response.
Unsuccessful Responses
When you make a response that is invalid, you will recieve a JSON response with information about the error. It will have four fields:
JSON Key | Description |
---|---|
code | A short name for the error that occurred. e.g. "invalid_column" |
details | A one sentence description of what issue was encountered. e.g. "Unknown column 'nmae' in 'where clause'" |
object | Will say the word "error" to denote this response as an error |
status | The HTTP response code associated with the request. Usually 400 |
Here is an example:
{
"code": "invalid_url",
"details": "Invalid URL! The current URLs avaliable for /cards/ is /cards/all, /cards/fetch",
"object": "error",
"status": 404
}