Send NFT To Email

The API allows you to send a NFT via email to another user


GRAPHQL


Headers

FieldsTypeDescriptionExampleData Management
URLstring{base_url}/creators
GRAPHQLstringMUTATION
content-typestringJSONapplication/json
x-access-tokenstringsession token with validitytokencreator token

Request

mutation {
  send_nft_to_email(email: "sachinsuresh704@gmail.com", name: "sachin", nft_id: "624fc253521415614f508933") {
    message
  }
}


Request Parameters

FieldsTypeDescriptionRequired
emailstringemail of the user
namestringname of the user
nft_idstring_id of the nft

Success

{
    "data": {
        "send_nft_to_email": {
            "message": "NFT sent successfully"
        }
    }
}

Error

{
    "errors": [
        {
            "message": "Unauthorized",
            "locations": [
                {
                    "line": 2,
                    "column": 3
                }
            ],
            "path": ["send_nft_to_email"]
        }
    ],
    "data": {
        "send_nft_to_email": null
    }
}