createProfile

Creates a new Profile

🔑 Requires authentication

This operation requires Bearer Token issued from our Authentication flow appended to the request headers. Please refer to Authentication page.

Interface

GraphQL Schema
input ProfileCreateInput {
  handle: String!
  address: String!
}

type Mutation {
  createProfile(input: ProfileCreateInput!): Profile!
}

Inputs:

  1. handle: [Required] Unique handle to be created for the Profile

    • Minimum length of 4, maximum of 255

    • Supported characters: Alphanumeric, hyphens and underscores

  2. address: [Required] TON wallet address tied to the Nabi Profile

    • Must be a valid TON wallet address

    • This address will be the owner of the Nabi Profile NFT item minted by NabiHub

Operation

GraphQL Operation
mutation createProfile {
  createProfile(
    input: {
      handle: "asdfgh",
      address: "EQBwZ3Fkt-TnvJAitXb4U6Us2F-CQ5-cdXCKbrheyjTuxdX2"
    }
  )  {
    profileUri
    handle
    ownedBy
    # ...other Profile fields...
  }
}

Sample Response

JSON Response
{
  "data": {
    "createProfile": {
      "profileUri": "https://nabi-protocol-profile-nft-meta.s3.amazonaws.com/4736b7a9-5066-4883-879d-f1318f9a1430.json",
      "handle": "bouncycastles",
      "ownedBy": "EQBwZ3Fkt-TnvJAitXb4U6Us2F-CQ5-cdXCKbrheyjTuxdX2"
    }
  }
}

Last updated