Download OpenAPI specification:Download
Documentation for the Artfora Redemption API. This API is used to interact with the Artfora redemption platform. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
Retrieve collections data based on query parameters. The fields that will always be displayed, regardless of the blockchain, are:
This data is sourced from Artfora's database and smart contracts.
| artist | string Filter by artist |
| blockchain | string Enum: "eth" "xtz" Filter by blockchain |
| text | string Text search on name and creator name fields |
| sort | string Enum: "NAME_ASC" "NAME_DESC" "ARTIST_ASC" "ARTIST_DESC" Sort order (e.g., 'NAME_DESC', 'ARTIST_ASC', 'ARTIST_DESC') |
| page | integer <int32> Page number for pagination |
| limit | integer <int32> Limit the number of items returned per page |
{- "result": {
- "collections": [
- {
- "_id": "5f9b3b3b9c9d6b0008c9b3b3",
- "contract_address": "0xeeb75e8a5756ab2c3ac667748c562628f0aa7849",
- "name": "Artfora Collection",
- "slug": "artfora-collection",
- "blockchain": "eth",
- "description": "Fine-art giclée print accompanied with a certificate of materialization and paired by Artfora with the NFT on the blockchain.",
- "medium": "Fine-art giclée print",
- "medium_tagline": "string",
- "token_standard": "string",
- "total_redeemed": 0,
- "is_active": true,
- "print_options": [
- {
- "type": "hahnemuhle_photo_rag_bright",
- "tier": "tier_one",
- "finish": "standard",
- "size": "6x9",
- "price": 100
}
], - "total_supply": 100,
- "is_featured": false,
- "is_highlighted": false,
- "redeemed_from": "print_to_demand",
- "data_source": {
- "source": "objkt",
- "fxhash_slug": "string",
- "opensea_slug": "string",
- "start_token": "string",
- "total_supply": 0
}
}
], - "nextPage": 0
}
}Retrieve collections data based on query parameters. The fields that will always be displayed, regardless of the blockchain, are:
This data is sourced from Artfora's database and smart contracts.
| slug required | string Collection slug |
| owner | string Filter by owner (contract address or wallet address) |
| token_id | string Filter by token ID |
| page | integer <int32> Page number for pagination |
| limit | integer <int32> Limit the number of items returned per page |
{- "result": {
- "nfts": [
- {
- "_id": "63f3c5f2ae3afc9ece6d3c88",
- "token_id": "1",
- "contract_address": "0x3e0b328e4a48e420584bbd8183f1b8c76e215170",
- "name": "8621",
- "is_redeemed": true,
- "collection_id": "63f3c5f2ae3afc9ece6d3c87"
}
], - "nextPage": 0
}
}Use these routes to create a redemption request and get signed data to be used to facilitate a redemption through Artfora's Smart Contracts.
Submit an artist redemption request for a specific collection.
| contract_address required | string The contract address of the collection. |
| token_id required | string The token ID of the NFT. |
| signature required | string A signed message: "I hereby sign to verify ownership over token #{TOKEN_ID} from contract {CONTRACT_ADDRESS}". Collector must sign this message string (replace the values with corresponding values of the NFT) - their address and ownership of the token is verified from the signature. |
| public_key | string The public key of the Collector address - only required for redemption of Tezos NFTs |
required | object (ShippingInformation) |
| is_premium | boolean Indicates if it's a premium shipping request. |
{- "contract_address": "0x1234567890123456789012345678901234567890",
- "token_id": "0",
- "signature": "0x1234567890123456789012345678901234567890",
- "public_key": "0x1234567890123456789012345678901234567890",
- "shipping_information": {
- "full_name": "John Javascript",
- "email": "john@churchofjavascript.com",
- "phone": "+10041219950",
- "address_line_1": "501 East Middlefield Road",
- "address_line_2": "Apt 1",
- "country": "US",
- "state": "CA",
- "city": "Mountain View",
- "postal_code": "94043",
- "comment": "Please leave on the porch"
}, - "is_premium": true
}{- "result": {
- "result": "success"
}
}| collection_slug required | string |
| token_id required | string |
| signature required | string |
| public_key required | string |
required | object (ShippingInformation) |
required | object (PrintRequest) |
{- "collection_slug": "string",
- "token_id": "string",
- "signature": "string",
- "public_key": "string",
- "shipping_information": {
- "full_name": "John Javascript",
- "email": "john@churchofjavascript.com",
- "phone": "+10041219950",
- "address_line_1": "501 East Middlefield Road",
- "address_line_2": "Apt 1",
- "country": "US",
- "state": "CA",
- "city": "Mountain View",
- "postal_code": "94043",
- "comment": "Please leave on the porch"
}, - "print_information": {
- "type": "hahnemuhle_photo_rag_bright",
- "finish": "standard",
- "size": "6x9"
}
}{- "result": {
- "result": "success"
}
}| collection_slug required | string |
| token_id required | string |
| signature required | string |
| public_key required | string |
required | object (ShippingInformation) |
required | object (PrintRequest) |
{- "collection_slug": "string",
- "token_id": "string",
- "signature": "string",
- "public_key": "string",
- "shipping_information": {
- "full_name": "John Javascript",
- "email": "john@churchofjavascript.com",
- "phone": "+10041219950",
- "address_line_1": "501 East Middlefield Road",
- "address_line_2": "Apt 1",
- "country": "US",
- "state": "CA",
- "city": "Mountain View",
- "postal_code": "94043",
- "comment": "Please leave on the porch"
}, - "print_information": {
- "type": "hahnemuhle_photo_rag_bright",
- "finish": "standard",
- "size": "6x9"
}
}{- "result": {
- "result": "success"
}
}| slug required | string Collection slug |
| token_id required | string Token ID |
{- "result": {
- "redemptionData": {
- "artistAddress": "string",
- "contractAddress": "string",
- "tokenId": "string",
- "fundsToArtist": "string",
- "fundsToArtfora": "string",
- "expiration": "2019-08-24T14:15:22Z"
}, - "signature": "string"
}
}