VAULT3 GraphQL API Reference

Welcome to the party!

Contact

Support on Discord

https://discord.gg/drHsXRgqfS

Terms of Service

https://vault3.io/terms

API Endpoints
# Production:
https://api.vault3.io/api/graphql
Headers
# Either your personal or enterprise access token
Authorization: <YOUR_TOKEN_HERE>

Enterprise access

Contact us if you want to leverage our API's for your own products.

Queries

accessConditionById

Response

Returns an AccessCondition

Arguments
Name Description
id - String!

Example

Query
query accessConditionById($id: String!) {
  accessConditionById(id: $id) {
    assetOwnerSettings {
      ...AccessConditionAssetOwnerSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    name
    poolDelegationSettings {
      ...AccessConditionPoolDelegationSettingsFragment
    }
    type
    updatedAt
    whitelistSettings {
      ...AccessConditionWhitelistSettingsFragment
    }
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "accessConditionById": {
      "assetOwnerSettings": AccessConditionAssetOwnerSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "xyz789",
      "id": "4",
      "name": "xyz789",
      "poolDelegationSettings": AccessConditionPoolDelegationSettings,
      "type": "ASSET_OWNER",
      "updatedAt": "2007-12-03T10:15:30Z",
      "whitelistSettings": AccessConditionWhitelistSettings
    }
  }
}

accessConditionByName

Response

Returns an AccessCondition

Arguments
Name Description
name - String!

Example

Query
query accessConditionByName($name: String!) {
  accessConditionByName(name: $name) {
    assetOwnerSettings {
      ...AccessConditionAssetOwnerSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    name
    poolDelegationSettings {
      ...AccessConditionPoolDelegationSettingsFragment
    }
    type
    updatedAt
    whitelistSettings {
      ...AccessConditionWhitelistSettingsFragment
    }
  }
}
Variables
{"name": "abc123"}
Response
{
  "data": {
    "accessConditionByName": {
      "assetOwnerSettings": AccessConditionAssetOwnerSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "id": "4",
      "name": "abc123",
      "poolDelegationSettings": AccessConditionPoolDelegationSettings,
      "type": "ASSET_OWNER",
      "updatedAt": "2007-12-03T10:15:30Z",
      "whitelistSettings": AccessConditionWhitelistSettings
    }
  }
}

accessConditions

Response

Returns [AccessCondition!]!

Example

Query
query accessConditions {
  accessConditions {
    assetOwnerSettings {
      ...AccessConditionAssetOwnerSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    name
    poolDelegationSettings {
      ...AccessConditionPoolDelegationSettingsFragment
    }
    type
    updatedAt
    whitelistSettings {
      ...AccessConditionWhitelistSettingsFragment
    }
  }
}
Response
{
  "data": {
    "accessConditions": [
      {
        "assetOwnerSettings": AccessConditionAssetOwnerSettings,
        "createdAt": "2007-12-03T10:15:30Z",
        "creator": User,
        "creatorId": "xyz789",
        "id": 4,
        "name": "abc123",
        "poolDelegationSettings": AccessConditionPoolDelegationSettings,
        "type": "ASSET_OWNER",
        "updatedAt": "2007-12-03T10:15:30Z",
        "whitelistSettings": AccessConditionWhitelistSettings
      }
    ]
  }
}

checkFormAccess

Response

Returns a CheckFormAccessResult!

Arguments
Name Description
formId - String!

Example

Query
query checkFormAccess($formId: String!) {
  checkFormAccess(formId: $formId) {
    hasAccess
  }
}
Variables
{"formId": "abc123"}
Response
{"data": {"checkFormAccess": {"hasAccess": false}}}

checkFormEntryConditions

Response

Returns a Boolean!

Arguments
Name Description
formId - String!

Example

Query
query checkFormEntryConditions($formId: String!) {
  checkFormEntryConditions(formId: $formId)
}
Variables
{"formId": "xyz789"}
Response
{"data": {"checkFormEntryConditions": true}}

checkSpaceAccess

Response

Returns a CheckSpaceAccessResult!

Arguments
Name Description
spaceId - String!

Example

Query
query checkSpaceAccess($spaceId: String!) {
  checkSpaceAccess(spaceId: $spaceId) {
    hasAccess
  }
}
Variables
{"spaceId": "xyz789"}
Response
{"data": {"checkSpaceAccess": {"hasAccess": false}}}

downloadFile

Response

Returns a DecryptedFile!

Arguments
Name Description
id - String!

Example

Query
query downloadFile($id: String!) {
  downloadFile(id: $id) {
    content
    id
    mime
    name
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "downloadFile": {
      "content": "abc123",
      "id": "xyz789",
      "mime": "abc123",
      "name": "xyz789"
    }
  }
}

downloadFilesFromSpace

Response

Returns a Space

Arguments
Name Description
id - String!

Example

Query
query downloadFilesFromSpace($id: String!) {
  downloadFilesFromSpace(id: $id) {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    download {
      ...DecryptedFileFragment
    }
    files {
      ...FileFragment
    }
    id
    isActive
    name
    slug
    spaceAccessConditions {
      ...SpaceAccessConditionFragment
    }
    updatedAt
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "downloadFilesFromSpace": {
      "activeSince": "2007-12-03T10:15:30Z",
      "branding": BrandingSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "description": "abc123",
      "download": [DecryptedFile],
      "files": [File],
      "id": 4,
      "isActive": false,
      "name": "xyz789",
      "slug": "xyz789",
      "spaceAccessConditions": [SpaceAccessCondition],
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

fileById

Response

Returns a File

Arguments
Name Description
id - String!

Example

Query
query fileById($id: String!) {
  fileById(id: $id) {
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    mime
    name
    space {
      ...SpaceFragment
    }
    spaceId
    updatedAt
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "fileById": {
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "id": "4",
      "mime": "abc123",
      "name": "xyz789",
      "space": Space,
      "spaceId": "xyz789",
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

files

Response

Returns [File!]!

Example

Query
query files {
  files {
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    mime
    name
    space {
      ...SpaceFragment
    }
    spaceId
    updatedAt
  }
}
Response
{
  "data": {
    "files": [
      {
        "createdAt": "2007-12-03T10:15:30Z",
        "creator": User,
        "creatorId": "xyz789",
        "id": 4,
        "mime": "abc123",
        "name": "abc123",
        "space": Space,
        "spaceId": "abc123",
        "updatedAt": "2007-12-03T10:15:30Z"
      }
    ]
  }
}

filesInSpace

Response

Returns [File!]!

Arguments
Name Description
spaceId - String!

Example

Query
query filesInSpace($spaceId: String!) {
  filesInSpace(spaceId: $spaceId) {
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    mime
    name
    space {
      ...SpaceFragment
    }
    spaceId
    updatedAt
  }
}
Variables
{"spaceId": "xyz789"}
Response
{
  "data": {
    "filesInSpace": [
      {
        "createdAt": "2007-12-03T10:15:30Z",
        "creator": User,
        "creatorId": "abc123",
        "id": 4,
        "mime": "abc123",
        "name": "abc123",
        "space": Space,
        "spaceId": "abc123",
        "updatedAt": "2007-12-03T10:15:30Z"
      }
    ]
  }
}

formAccessConditionsByAccessCondition

Response

Returns [FormAccessCondition!]

Arguments
Name Description
accessConditionId - String!

Example

Query
query formAccessConditionsByAccessCondition($accessConditionId: String!) {
  formAccessConditionsByAccessCondition(accessConditionId: $accessConditionId) {
    accessCondition {
      ...AccessConditionFragment
    }
    form {
      ...FormFragment
    }
    id
  }
}
Variables
{"accessConditionId": "xyz789"}
Response
{
  "data": {
    "formAccessConditionsByAccessCondition": [
      {
        "accessCondition": AccessCondition,
        "form": Form,
        "id": 4
      }
    ]
  }
}

formById

Response

Returns a Form

Arguments
Name Description
id - String!

Example

Query
query formById($id: String!) {
  formById(id: $id) {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    fields {
      ...FormFieldFragment
    }
    formAccessConditions {
      ...FormAccessConditionFragment
    }
    id
    isActive
    name
    slug
    subscriptionStatus
    updatedAt
  }
}
Variables
{"id": "xyz789"}
Response
{
  "data": {
    "formById": {
      "activeSince": "2007-12-03T10:15:30Z",
      "branding": BrandingSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "xyz789",
      "description": "abc123",
      "fields": [FormField],
      "formAccessConditions": [FormAccessCondition],
      "id": 4,
      "isActive": true,
      "name": "abc123",
      "slug": "abc123",
      "subscriptionStatus": "FREE",
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

formEntriesByFormId

Response

Returns [FormEntry!]

Arguments
Name Description
id - String!

Example

Query
query formEntriesByFormId($id: String!) {
  formEntriesByFormId(id: $id) {
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    form {
      ...FormFragment
    }
    formId
    id
    stakeKey
    updatedAt
    values
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "formEntriesByFormId": [
      {
        "createdAt": "2007-12-03T10:15:30Z",
        "creator": User,
        "creatorId": "abc123",
        "form": Form,
        "formId": "xyz789",
        "id": "4",
        "stakeKey": "abc123",
        "updatedAt": "2007-12-03T10:15:30Z",
        "values": {}
      }
    ]
  }
}

formSlugAvailable

Response

Returns a Boolean!

Arguments
Name Description
ignoreFormId - String
slug - String!

Example

Query
query formSlugAvailable(
  $ignoreFormId: String,
  $slug: String!
) {
  formSlugAvailable(
    ignoreFormId: $ignoreFormId,
    slug: $slug
  )
}
Variables
{
  "ignoreFormId": "abc123",
  "slug": "abc123"
}
Response
{"data": {"formSlugAvailable": true}}

forms

Response

Returns [Form!]!

Example

Query
query forms {
  forms {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    fields {
      ...FormFieldFragment
    }
    formAccessConditions {
      ...FormAccessConditionFragment
    }
    id
    isActive
    name
    slug
    subscriptionStatus
    updatedAt
  }
}
Response
{
  "data": {
    "forms": [
      {
        "activeSince": "2007-12-03T10:15:30Z",
        "branding": BrandingSettings,
        "createdAt": "2007-12-03T10:15:30Z",
        "creator": User,
        "creatorId": "abc123",
        "description": "abc123",
        "fields": [FormField],
        "formAccessConditions": [FormAccessCondition],
        "id": 4,
        "isActive": false,
        "name": "xyz789",
        "slug": "xyz789",
        "subscriptionStatus": "FREE",
        "updatedAt": "2007-12-03T10:15:30Z"
      }
    ]
  }
}

me

Response

Returns a User!

Example

Query
query me {
  me {
    cardanoAddress
    id
    spaces {
      ...SpaceFragment
    }
  }
}
Response
{
  "data": {
    "me": {
      "cardanoAddress": "xyz789",
      "id": 4,
      "spaces": [Space]
    }
  }
}

metricDashboardKeyIndicators

Response

Returns a DashboardKeyMetric!

Arguments
Name Description
spaceId - String

Example

Query
query metricDashboardKeyIndicators($spaceId: String) {
  metricDashboardKeyIndicators(spaceId: $spaceId) {
    ctaEngagement
    totalConnectedWallets
    totalForms
    totalInteractions
    totalSpaces
    totalUniqueEntries
    totalUnlocks
  }
}
Variables
{"spaceId": "xyz789"}
Response
{
  "data": {
    "metricDashboardKeyIndicators": {
      "ctaEngagement": 123.45,
      "totalConnectedWallets": 123,
      "totalForms": 123,
      "totalInteractions": 123,
      "totalSpaces": 123,
      "totalUniqueEntries": 123,
      "totalUnlocks": 123
    }
  }
}

metricDashboardKeyIndicatorsForForm

Response

Returns a DashboardKeyMetric!

Arguments
Name Description
formId - String

Example

Query
query metricDashboardKeyIndicatorsForForm($formId: String) {
  metricDashboardKeyIndicatorsForForm(formId: $formId) {
    ctaEngagement
    totalConnectedWallets
    totalForms
    totalInteractions
    totalSpaces
    totalUniqueEntries
    totalUnlocks
  }
}
Variables
{"formId": "xyz789"}
Response
{
  "data": {
    "metricDashboardKeyIndicatorsForForm": {
      "ctaEngagement": 123.45,
      "totalConnectedWallets": 123,
      "totalForms": 987,
      "totalInteractions": 123,
      "totalSpaces": 123,
      "totalUniqueEntries": 123,
      "totalUnlocks": 987
    }
  }
}

metricDistributionEngagementCTA

Arguments
Name Description
spaceId - String

Example

Query
query metricDistributionEngagementCTA($spaceId: String) {
  metricDistributionEngagementCTA(spaceId: $spaceId) {
    fallbackCTA
    successCTA
  }
}
Variables
{"spaceId": "abc123"}
Response
{
  "data": {
    "metricDistributionEngagementCTA": {
      "fallbackCTA": 987.65,
      "successCTA": 987.65
    }
  }
}

metricDistributionEngagementCTAForForm

Arguments
Name Description
formId - String

Example

Query
query metricDistributionEngagementCTAForForm($formId: String) {
  metricDistributionEngagementCTAForForm(formId: $formId) {
    fallbackCTA
    successCTA
  }
}
Variables
{"formId": "xyz789"}
Response
{
  "data": {
    "metricDistributionEngagementCTAForForm": {
      "fallbackCTA": 987.65,
      "successCTA": 987.65
    }
  }
}

metricFallbackFunnel

Response

Returns a FallbackFunnelMetric!

Arguments
Name Description
spaceId - String

Example

Query
query metricFallbackFunnel($spaceId: String) {
  metricFallbackFunnel(spaceId: $spaceId) {
    fallbackCTA
    unsuccessUnlocks
    views
  }
}
Variables
{"spaceId": "xyz789"}
Response
{
  "data": {
    "metricFallbackFunnel": {
      "fallbackCTA": 123,
      "unsuccessUnlocks": 987,
      "views": 123
    }
  }
}

metricFallbackFunnelForForm

Response

Returns a FallbackFunnelMetric!

Arguments
Name Description
formId - String

Example

Query
query metricFallbackFunnelForForm($formId: String) {
  metricFallbackFunnelForForm(formId: $formId) {
    fallbackCTA
    unsuccessUnlocks
    views
  }
}
Variables
{"formId": "abc123"}
Response
{
  "data": {
    "metricFallbackFunnelForForm": {
      "fallbackCTA": 987,
      "unsuccessUnlocks": 987,
      "views": 123
    }
  }
}

metricSubscriptionForForm

Response

Returns a SubscriptionMetric!

Arguments
Name Description
formId - String!

Example

Query
query metricSubscriptionForForm($formId: String!) {
  metricSubscriptionForForm(formId: $formId) {
    entries
    hasPaymentTx
    reachedLimit
    status
  }
}
Variables
{"formId": "abc123"}
Response
{
  "data": {
    "metricSubscriptionForForm": {
      "entries": 987,
      "hasPaymentTx": true,
      "reachedLimit": false,
      "status": "FREE"
    }
  }
}

metricSuccessFunnel

Response

Returns a SuccessFunnelMetric!

Arguments
Name Description
spaceId - String

Example

Query
query metricSuccessFunnel($spaceId: String) {
  metricSuccessFunnel(spaceId: $spaceId) {
    successCTA
    successUnlocks
    views
  }
}
Variables
{"spaceId": "abc123"}
Response
{
  "data": {
    "metricSuccessFunnel": {
      "successCTA": 123,
      "successUnlocks": 123,
      "views": 123
    }
  }
}

metricSuccessFunnelForForm

Response

Returns a SuccessFunnelMetric!

Arguments
Name Description
formId - String

Example

Query
query metricSuccessFunnelForForm($formId: String) {
  metricSuccessFunnelForForm(formId: $formId) {
    successCTA
    successUnlocks
    views
  }
}
Variables
{"formId": "xyz789"}
Response
{
  "data": {
    "metricSuccessFunnelForForm": {
      "successCTA": 123,
      "successUnlocks": 123,
      "views": 123
    }
  }
}

metricTrendingSpaces

Response

Returns a TrendingSpacesMetric!

Example

Query
query metricTrendingSpaces {
  metricTrendingSpaces {
    spaces {
      ...TrendingSpaceMetricFragment
    }
  }
}
Response
{
  "data": {
    "metricTrendingSpaces": {
      "spaces": [TrendingSpaceMetric]
    }
  }
}

metricUnlocksPerForm

Response

Returns an UnlocksPerFormMetric!

Example

Query
query metricUnlocksPerForm {
  metricUnlocksPerForm {
    forms {
      ...FormMetricFragment
    }
  }
}
Response
{
  "data": {
    "metricUnlocksPerForm": {"forms": [FormMetric]}
  }
}

metricUnlocksPerSpace

Response

Returns an UnlocksPerSpaceMetric!

Example

Query
query metricUnlocksPerSpace {
  metricUnlocksPerSpace {
    spaces {
      ...SpaceMetricFragment
    }
  }
}
Response
{
  "data": {
    "metricUnlocksPerSpace": {"spaces": [SpaceMetric]}
  }
}

signatureChallenge

Response

Returns a SignatureChallengeResponse!

Arguments
Name Description
address - String!

Example

Query
query signatureChallenge($address: String!) {
  signatureChallenge(address: $address) {
    message
  }
}
Variables
{"address": "xyz789"}
Response
{
  "data": {
    "signatureChallenge": {
      "message": "abc123"
    }
  }
}

spaceAccessConditionsByAccessCondition

Response

Returns [SpaceAccessCondition!]

Arguments
Name Description
accessConditionId - String!

Example

Query
query spaceAccessConditionsByAccessCondition($accessConditionId: String!) {
  spaceAccessConditionsByAccessCondition(accessConditionId: $accessConditionId) {
    accessCondition {
      ...AccessConditionFragment
    }
    id
    space {
      ...SpaceFragment
    }
  }
}
Variables
{"accessConditionId": "abc123"}
Response
{
  "data": {
    "spaceAccessConditionsByAccessCondition": [
      {
        "accessCondition": AccessCondition,
        "id": 4,
        "space": Space
      }
    ]
  }
}

spaceById

Response

Returns a Space

Arguments
Name Description
id - String!

Example

Query
query spaceById($id: String!) {
  spaceById(id: $id) {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    download {
      ...DecryptedFileFragment
    }
    files {
      ...FileFragment
    }
    id
    isActive
    name
    slug
    spaceAccessConditions {
      ...SpaceAccessConditionFragment
    }
    updatedAt
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "spaceById": {
      "activeSince": "2007-12-03T10:15:30Z",
      "branding": BrandingSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "description": "xyz789",
      "download": [DecryptedFile],
      "files": [File],
      "id": "4",
      "isActive": true,
      "name": "abc123",
      "slug": "xyz789",
      "spaceAccessConditions": [SpaceAccessCondition],
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

spaceSlugAvailable

Response

Returns a Boolean!

Arguments
Name Description
ignoreSpaceId - String
slug - String!

Example

Query
query spaceSlugAvailable(
  $ignoreSpaceId: String,
  $slug: String!
) {
  spaceSlugAvailable(
    ignoreSpaceId: $ignoreSpaceId,
    slug: $slug
  )
}
Variables
{
  "ignoreSpaceId": "abc123",
  "slug": "abc123"
}
Response
{"data": {"spaceSlugAvailable": true}}

spaces

Response

Returns [Space!]!

Example

Query
query spaces {
  spaces {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    download {
      ...DecryptedFileFragment
    }
    files {
      ...FileFragment
    }
    id
    isActive
    name
    slug
    spaceAccessConditions {
      ...SpaceAccessConditionFragment
    }
    updatedAt
  }
}
Response
{
  "data": {
    "spaces": [
      {
        "activeSince": "2007-12-03T10:15:30Z",
        "branding": BrandingSettings,
        "createdAt": "2007-12-03T10:15:30Z",
        "creator": User,
        "creatorId": "abc123",
        "description": "xyz789",
        "download": [DecryptedFile],
        "files": [File],
        "id": "4",
        "isActive": true,
        "name": "abc123",
        "slug": "xyz789",
        "spaceAccessConditions": [SpaceAccessCondition],
        "updatedAt": "2007-12-03T10:15:30Z"
      }
    ]
  }
}

subscribeToFormPaymentTx

Response

Returns a SubscriptionPaymentTx!

Arguments
Name Description
formId - String!
payeeChangeAddress - String!
payeeUtxos - String!

Example

Query
query subscribeToFormPaymentTx(
  $formId: String!,
  $payeeChangeAddress: String!,
  $payeeUtxos: String!
) {
  subscribeToFormPaymentTx(
    formId: $formId,
    payeeChangeAddress: $payeeChangeAddress,
    payeeUtxos: $payeeUtxos
  ) {
    unsignedTx
  }
}
Variables
{
  "formId": "abc123",
  "payeeChangeAddress": "abc123",
  "payeeUtxos": "abc123"
}
Response
{
  "data": {
    "subscribeToFormPaymentTx": {
      "unsignedTx": "abc123"
    }
  }
}

Mutations

confirmFormPaymentTx

Response

Returns a Form!

Arguments
Name Description
formId - String!

Example

Query
mutation confirmFormPaymentTx($formId: String!) {
  confirmFormPaymentTx(formId: $formId) {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    fields {
      ...FormFieldFragment
    }
    formAccessConditions {
      ...FormAccessConditionFragment
    }
    id
    isActive
    name
    slug
    subscriptionStatus
    updatedAt
  }
}
Variables
{"formId": "xyz789"}
Response
{
  "data": {
    "confirmFormPaymentTx": {
      "activeSince": "2007-12-03T10:15:30Z",
      "branding": BrandingSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "description": "xyz789",
      "fields": [FormField],
      "formAccessConditions": [FormAccessCondition],
      "id": 4,
      "isActive": true,
      "name": "abc123",
      "slug": "xyz789",
      "subscriptionStatus": "FREE",
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

createAssetOwnerAccessCondition

Response

Returns an AccessCondition!

Arguments
Name Description
assetFingerprints - [String!]!
minAmount - Int!
name - String!
policyId - String!

Example

Query
mutation createAssetOwnerAccessCondition(
  $assetFingerprints: [String!]!,
  $minAmount: Int!,
  $name: String!,
  $policyId: String!
) {
  createAssetOwnerAccessCondition(
    assetFingerprints: $assetFingerprints,
    minAmount: $minAmount,
    name: $name,
    policyId: $policyId
  ) {
    assetOwnerSettings {
      ...AccessConditionAssetOwnerSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    name
    poolDelegationSettings {
      ...AccessConditionPoolDelegationSettingsFragment
    }
    type
    updatedAt
    whitelistSettings {
      ...AccessConditionWhitelistSettingsFragment
    }
  }
}
Variables
{
  "assetFingerprints": ["abc123"],
  "minAmount": 987,
  "name": "xyz789",
  "policyId": "xyz789"
}
Response
{
  "data": {
    "createAssetOwnerAccessCondition": {
      "assetOwnerSettings": AccessConditionAssetOwnerSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "xyz789",
      "id": "4",
      "name": "xyz789",
      "poolDelegationSettings": AccessConditionPoolDelegationSettings,
      "type": "ASSET_OWNER",
      "updatedAt": "2007-12-03T10:15:30Z",
      "whitelistSettings": AccessConditionWhitelistSettings
    }
  }
}

createFile

Response

Returns a File!

Arguments
Name Description
content - String!
mime - String!
name - String!
spaceId - String!

Example

Query
mutation createFile(
  $content: String!,
  $mime: String!,
  $name: String!,
  $spaceId: String!
) {
  createFile(
    content: $content,
    mime: $mime,
    name: $name,
    spaceId: $spaceId
  ) {
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    mime
    name
    space {
      ...SpaceFragment
    }
    spaceId
    updatedAt
  }
}
Variables
{
  "content": "abc123",
  "mime": "abc123",
  "name": "abc123",
  "spaceId": "abc123"
}
Response
{
  "data": {
    "createFile": {
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "xyz789",
      "id": 4,
      "mime": "xyz789",
      "name": "abc123",
      "space": Space,
      "spaceId": "abc123",
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

createForm

Response

Returns a Form!

Arguments
Name Description
description - String
fields - [FormFieldInput!]
isActive - Boolean Default = true
name - String!
slug - String!

Example

Query
mutation createForm(
  $description: String,
  $fields: [FormFieldInput!],
  $isActive: Boolean,
  $name: String!,
  $slug: String!
) {
  createForm(
    description: $description,
    fields: $fields,
    isActive: $isActive,
    name: $name,
    slug: $slug
  ) {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    fields {
      ...FormFieldFragment
    }
    formAccessConditions {
      ...FormAccessConditionFragment
    }
    id
    isActive
    name
    slug
    subscriptionStatus
    updatedAt
  }
}
Variables
{
  "description": "xyz789",
  "fields": [FormFieldInput],
  "isActive": true,
  "name": "abc123",
  "slug": "abc123"
}
Response
{
  "data": {
    "createForm": {
      "activeSince": "2007-12-03T10:15:30Z",
      "branding": BrandingSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "xyz789",
      "description": "abc123",
      "fields": [FormField],
      "formAccessConditions": [FormAccessCondition],
      "id": "4",
      "isActive": false,
      "name": "abc123",
      "slug": "abc123",
      "subscriptionStatus": "FREE",
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

createFormEntry

Response

Returns a FormEntry!

Arguments
Name Description
formId - String!
values - JSONObject!

Example

Query
mutation createFormEntry(
  $formId: String!,
  $values: JSONObject!
) {
  createFormEntry(
    formId: $formId,
    values: $values
  ) {
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    form {
      ...FormFragment
    }
    formId
    id
    stakeKey
    updatedAt
    values
  }
}
Variables
{"formId": "xyz789", "values": {}}
Response
{
  "data": {
    "createFormEntry": {
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "form": Form,
      "formId": "abc123",
      "id": 4,
      "stakeKey": "xyz789",
      "updatedAt": "2007-12-03T10:15:30Z",
      "values": {}
    }
  }
}

createPoolDelegationAccessCondition

Response

Returns an AccessCondition!

Arguments
Name Description
minDelegation - Int!
minEpochs - Int!
name - String!
poolId - String!

Example

Query
mutation createPoolDelegationAccessCondition(
  $minDelegation: Int!,
  $minEpochs: Int!,
  $name: String!,
  $poolId: String!
) {
  createPoolDelegationAccessCondition(
    minDelegation: $minDelegation,
    minEpochs: $minEpochs,
    name: $name,
    poolId: $poolId
  ) {
    assetOwnerSettings {
      ...AccessConditionAssetOwnerSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    name
    poolDelegationSettings {
      ...AccessConditionPoolDelegationSettingsFragment
    }
    type
    updatedAt
    whitelistSettings {
      ...AccessConditionWhitelistSettingsFragment
    }
  }
}
Variables
{
  "minDelegation": 123,
  "minEpochs": 987,
  "name": "abc123",
  "poolId": "xyz789"
}
Response
{
  "data": {
    "createPoolDelegationAccessCondition": {
      "assetOwnerSettings": AccessConditionAssetOwnerSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "id": 4,
      "name": "abc123",
      "poolDelegationSettings": AccessConditionPoolDelegationSettings,
      "type": "ASSET_OWNER",
      "updatedAt": "2007-12-03T10:15:30Z",
      "whitelistSettings": AccessConditionWhitelistSettings
    }
  }
}

createSession

Response

Returns a Session!

Arguments
Name Description
address - String!
key - String!
signature - String!

Example

Query
mutation createSession(
  $address: String!,
  $key: String!,
  $signature: String!
) {
  createSession(
    address: $address,
    key: $key,
    signature: $signature
  ) {
    id
    lifetime
    token
    user {
      ...UserFragment
    }
    userId
  }
}
Variables
{
  "address": "abc123",
  "key": "xyz789",
  "signature": "abc123"
}
Response
{
  "data": {
    "createSession": {
      "id": 4,
      "lifetime": "2007-12-03T10:15:30Z",
      "token": "xyz789",
      "user": User,
      "userId": "abc123"
    }
  }
}

createSpace

Response

Returns a Space!

Arguments
Name Description
description - String
isActive - Boolean Default = true
name - String!
slug - String!

Example

Query
mutation createSpace(
  $description: String,
  $isActive: Boolean,
  $name: String!,
  $slug: String!
) {
  createSpace(
    description: $description,
    isActive: $isActive,
    name: $name,
    slug: $slug
  ) {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    download {
      ...DecryptedFileFragment
    }
    files {
      ...FileFragment
    }
    id
    isActive
    name
    slug
    spaceAccessConditions {
      ...SpaceAccessConditionFragment
    }
    updatedAt
  }
}
Variables
{
  "description": "abc123",
  "isActive": true,
  "name": "xyz789",
  "slug": "abc123"
}
Response
{
  "data": {
    "createSpace": {
      "activeSince": "2007-12-03T10:15:30Z",
      "branding": BrandingSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "description": "abc123",
      "download": [DecryptedFile],
      "files": [File],
      "id": "4",
      "isActive": false,
      "name": "abc123",
      "slug": "abc123",
      "spaceAccessConditions": [SpaceAccessCondition],
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

createUser

Response

Returns a User!

Arguments
Name Description
address - String!

Example

Query
mutation createUser($address: String!) {
  createUser(address: $address) {
    cardanoAddress
    id
    spaces {
      ...SpaceFragment
    }
  }
}
Variables
{"address": "xyz789"}
Response
{
  "data": {
    "createUser": {
      "cardanoAddress": "abc123",
      "id": 4,
      "spaces": [Space]
    }
  }
}

createWhitelistAccessCondition

Response

Returns an AccessCondition!

Arguments
Name Description
allow - [String!]!
name - String!

Example

Query
mutation createWhitelistAccessCondition(
  $allow: [String!]!,
  $name: String!
) {
  createWhitelistAccessCondition(
    allow: $allow,
    name: $name
  ) {
    assetOwnerSettings {
      ...AccessConditionAssetOwnerSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    name
    poolDelegationSettings {
      ...AccessConditionPoolDelegationSettingsFragment
    }
    type
    updatedAt
    whitelistSettings {
      ...AccessConditionWhitelistSettingsFragment
    }
  }
}
Variables
{
  "allow": ["xyz789"],
  "name": "abc123"
}
Response
{
  "data": {
    "createWhitelistAccessCondition": {
      "assetOwnerSettings": AccessConditionAssetOwnerSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "xyz789",
      "id": "4",
      "name": "abc123",
      "poolDelegationSettings": AccessConditionPoolDelegationSettings,
      "type": "ASSET_OWNER",
      "updatedAt": "2007-12-03T10:15:30Z",
      "whitelistSettings": AccessConditionWhitelistSettings
    }
  }
}

deleteAccessCondition

Response

Returns an AccessCondition!

Arguments
Name Description
id - String!

Example

Query
mutation deleteAccessCondition($id: String!) {
  deleteAccessCondition(id: $id) {
    assetOwnerSettings {
      ...AccessConditionAssetOwnerSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    name
    poolDelegationSettings {
      ...AccessConditionPoolDelegationSettingsFragment
    }
    type
    updatedAt
    whitelistSettings {
      ...AccessConditionWhitelistSettingsFragment
    }
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "deleteAccessCondition": {
      "assetOwnerSettings": AccessConditionAssetOwnerSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "xyz789",
      "id": "4",
      "name": "xyz789",
      "poolDelegationSettings": AccessConditionPoolDelegationSettings,
      "type": "ASSET_OWNER",
      "updatedAt": "2007-12-03T10:15:30Z",
      "whitelistSettings": AccessConditionWhitelistSettings
    }
  }
}

deleteFile

Response

Returns a File!

Arguments
Name Description
id - String!

Example

Query
mutation deleteFile($id: String!) {
  deleteFile(id: $id) {
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    mime
    name
    space {
      ...SpaceFragment
    }
    spaceId
    updatedAt
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "deleteFile": {
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "id": "4",
      "mime": "xyz789",
      "name": "xyz789",
      "space": Space,
      "spaceId": "abc123",
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

deleteForm

Response

Returns a Form!

Arguments
Name Description
id - String!

Example

Query
mutation deleteForm($id: String!) {
  deleteForm(id: $id) {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    fields {
      ...FormFieldFragment
    }
    formAccessConditions {
      ...FormAccessConditionFragment
    }
    id
    isActive
    name
    slug
    subscriptionStatus
    updatedAt
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "deleteForm": {
      "activeSince": "2007-12-03T10:15:30Z",
      "branding": BrandingSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "description": "abc123",
      "fields": [FormField],
      "formAccessConditions": [FormAccessCondition],
      "id": "4",
      "isActive": true,
      "name": "xyz789",
      "slug": "xyz789",
      "subscriptionStatus": "FREE",
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

deleteSpace

Response

Returns a Space!

Arguments
Name Description
id - String!

Example

Query
mutation deleteSpace($id: String!) {
  deleteSpace(id: $id) {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    download {
      ...DecryptedFileFragment
    }
    files {
      ...FileFragment
    }
    id
    isActive
    name
    slug
    spaceAccessConditions {
      ...SpaceAccessConditionFragment
    }
    updatedAt
  }
}
Variables
{"id": "xyz789"}
Response
{
  "data": {
    "deleteSpace": {
      "activeSince": "2007-12-03T10:15:30Z",
      "branding": BrandingSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "xyz789",
      "description": "abc123",
      "download": [DecryptedFile],
      "files": [File],
      "id": "4",
      "isActive": true,
      "name": "xyz789",
      "slug": "abc123",
      "spaceAccessConditions": [SpaceAccessCondition],
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

duplicateAccessCondition

Response

Returns an AccessCondition!

Arguments
Name Description
id - String!

Example

Query
mutation duplicateAccessCondition($id: String!) {
  duplicateAccessCondition(id: $id) {
    assetOwnerSettings {
      ...AccessConditionAssetOwnerSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    name
    poolDelegationSettings {
      ...AccessConditionPoolDelegationSettingsFragment
    }
    type
    updatedAt
    whitelistSettings {
      ...AccessConditionWhitelistSettingsFragment
    }
  }
}
Variables
{"id": "xyz789"}
Response
{
  "data": {
    "duplicateAccessCondition": {
      "assetOwnerSettings": AccessConditionAssetOwnerSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "id": 4,
      "name": "xyz789",
      "poolDelegationSettings": AccessConditionPoolDelegationSettings,
      "type": "ASSET_OWNER",
      "updatedAt": "2007-12-03T10:15:30Z",
      "whitelistSettings": AccessConditionWhitelistSettings
    }
  }
}

duplicateForm

Response

Returns a Form!

Arguments
Name Description
id - String!

Example

Query
mutation duplicateForm($id: String!) {
  duplicateForm(id: $id) {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    fields {
      ...FormFieldFragment
    }
    formAccessConditions {
      ...FormAccessConditionFragment
    }
    id
    isActive
    name
    slug
    subscriptionStatus
    updatedAt
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "duplicateForm": {
      "activeSince": "2007-12-03T10:15:30Z",
      "branding": BrandingSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "xyz789",
      "description": "abc123",
      "fields": [FormField],
      "formAccessConditions": [FormAccessCondition],
      "id": 4,
      "isActive": true,
      "name": "xyz789",
      "slug": "xyz789",
      "subscriptionStatus": "FREE",
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

duplicateSpace

Response

Returns a Space!

Arguments
Name Description
id - String!

Example

Query
mutation duplicateSpace($id: String!) {
  duplicateSpace(id: $id) {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    download {
      ...DecryptedFileFragment
    }
    files {
      ...FileFragment
    }
    id
    isActive
    name
    slug
    spaceAccessConditions {
      ...SpaceAccessConditionFragment
    }
    updatedAt
  }
}
Variables
{"id": "xyz789"}
Response
{
  "data": {
    "duplicateSpace": {
      "activeSince": "2007-12-03T10:15:30Z",
      "branding": BrandingSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "description": "xyz789",
      "download": [DecryptedFile],
      "files": [File],
      "id": "4",
      "isActive": false,
      "name": "abc123",
      "slug": "xyz789",
      "spaceAccessConditions": [SpaceAccessCondition],
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

extendSession

Response

Returns a Session!

Example

Query
mutation extendSession {
  extendSession {
    id
    lifetime
    token
    user {
      ...UserFragment
    }
    userId
  }
}
Response
{
  "data": {
    "extendSession": {
      "id": 4,
      "lifetime": "2007-12-03T10:15:30Z",
      "token": "xyz789",
      "user": User,
      "userId": "xyz789"
    }
  }
}

formLinkAccessCondition

Response

Returns a FormAccessCondition!

Arguments
Name Description
accessConditionId - String!
formId - String!

Example

Query
mutation formLinkAccessCondition(
  $accessConditionId: String!,
  $formId: String!
) {
  formLinkAccessCondition(
    accessConditionId: $accessConditionId,
    formId: $formId
  ) {
    accessCondition {
      ...AccessConditionFragment
    }
    form {
      ...FormFragment
    }
    id
  }
}
Variables
{
  "accessConditionId": "abc123",
  "formId": "xyz789"
}
Response
{
  "data": {
    "formLinkAccessCondition": {
      "accessCondition": AccessCondition,
      "form": Form,
      "id": "4"
    }
  }
}

formUnlinkAccessCondition

Response

Returns a FormAccessCondition!

Arguments
Name Description
accessConditionId - String!
formId - String!

Example

Query
mutation formUnlinkAccessCondition(
  $accessConditionId: String!,
  $formId: String!
) {
  formUnlinkAccessCondition(
    accessConditionId: $accessConditionId,
    formId: $formId
  ) {
    accessCondition {
      ...AccessConditionFragment
    }
    form {
      ...FormFragment
    }
    id
  }
}
Variables
{
  "accessConditionId": "abc123",
  "formId": "abc123"
}
Response
{
  "data": {
    "formUnlinkAccessCondition": {
      "accessCondition": AccessCondition,
      "form": Form,
      "id": "4"
    }
  }
}

registerFormPaymentTx

Response

Returns a String!

Arguments
Name Description
formId - String!
txHash - String!

Example

Query
mutation registerFormPaymentTx(
  $formId: String!,
  $txHash: String!
) {
  registerFormPaymentTx(
    formId: $formId,
    txHash: $txHash
  )
}
Variables
{
  "formId": "abc123",
  "txHash": "abc123"
}
Response
{
  "data": {
    "registerFormPaymentTx": "abc123"
  }
}

registerInteraction

Response

Returns an Interaction!

Arguments
Name Description
action - InteractionActionType!
event - JSONObject!
topic - String!

Example

Query
mutation registerInteraction(
  $action: InteractionActionType!,
  $event: JSONObject!,
  $topic: String!
) {
  registerInteraction(
    action: $action,
    event: $event,
    topic: $topic
  ) {
    action
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    event
    id
    topic
  }
}
Variables
{
  "action": "CREATE",
  "event": {},
  "topic": "abc123"
}
Response
{
  "data": {
    "registerInteraction": {
      "action": "CREATE",
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "xyz789",
      "event": {},
      "id": 4,
      "topic": "abc123"
    }
  }
}

spaceLinkAccessCondition

Response

Returns a SpaceAccessCondition!

Arguments
Name Description
accessConditionId - String!
spaceId - String!

Example

Query
mutation spaceLinkAccessCondition(
  $accessConditionId: String!,
  $spaceId: String!
) {
  spaceLinkAccessCondition(
    accessConditionId: $accessConditionId,
    spaceId: $spaceId
  ) {
    accessCondition {
      ...AccessConditionFragment
    }
    id
    space {
      ...SpaceFragment
    }
  }
}
Variables
{
  "accessConditionId": "xyz789",
  "spaceId": "abc123"
}
Response
{
  "data": {
    "spaceLinkAccessCondition": {
      "accessCondition": AccessCondition,
      "id": "4",
      "space": Space
    }
  }
}

spaceUnlinkAccessCondition

Response

Returns a SpaceAccessCondition!

Arguments
Name Description
accessConditionId - String!
spaceId - String!

Example

Query
mutation spaceUnlinkAccessCondition(
  $accessConditionId: String!,
  $spaceId: String!
) {
  spaceUnlinkAccessCondition(
    accessConditionId: $accessConditionId,
    spaceId: $spaceId
  ) {
    accessCondition {
      ...AccessConditionFragment
    }
    id
    space {
      ...SpaceFragment
    }
  }
}
Variables
{
  "accessConditionId": "abc123",
  "spaceId": "xyz789"
}
Response
{
  "data": {
    "spaceUnlinkAccessCondition": {
      "accessCondition": AccessCondition,
      "id": "4",
      "space": Space
    }
  }
}

updateAssetOwnerAccessCondition

Response

Returns an AccessCondition!

Arguments
Name Description
assetFingerprints - [String!]
id - String!
minAmount - Int
name - String
policyId - String

Example

Query
mutation updateAssetOwnerAccessCondition(
  $assetFingerprints: [String!],
  $id: String!,
  $minAmount: Int,
  $name: String,
  $policyId: String
) {
  updateAssetOwnerAccessCondition(
    assetFingerprints: $assetFingerprints,
    id: $id,
    minAmount: $minAmount,
    name: $name,
    policyId: $policyId
  ) {
    assetOwnerSettings {
      ...AccessConditionAssetOwnerSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    name
    poolDelegationSettings {
      ...AccessConditionPoolDelegationSettingsFragment
    }
    type
    updatedAt
    whitelistSettings {
      ...AccessConditionWhitelistSettingsFragment
    }
  }
}
Variables
{
  "assetFingerprints": ["xyz789"],
  "id": "xyz789",
  "minAmount": 123,
  "name": "xyz789",
  "policyId": "xyz789"
}
Response
{
  "data": {
    "updateAssetOwnerAccessCondition": {
      "assetOwnerSettings": AccessConditionAssetOwnerSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "xyz789",
      "id": "4",
      "name": "xyz789",
      "poolDelegationSettings": AccessConditionPoolDelegationSettings,
      "type": "ASSET_OWNER",
      "updatedAt": "2007-12-03T10:15:30Z",
      "whitelistSettings": AccessConditionWhitelistSettings
    }
  }
}

updateFile

Response

Returns a File!

Arguments
Name Description
id - String!
name - String

Example

Query
mutation updateFile(
  $id: String!,
  $name: String
) {
  updateFile(
    id: $id,
    name: $name
  ) {
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    mime
    name
    space {
      ...SpaceFragment
    }
    spaceId
    updatedAt
  }
}
Variables
{
  "id": "abc123",
  "name": "xyz789"
}
Response
{
  "data": {
    "updateFile": {
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "id": "4",
      "mime": "xyz789",
      "name": "abc123",
      "space": Space,
      "spaceId": "abc123",
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

updateForm

Response

Returns a Form!

Arguments
Name Description
description - String
fields - [FormFieldInput!]
id - String!
isActive - Boolean
name - String
slug - String

Example

Query
mutation updateForm(
  $description: String,
  $fields: [FormFieldInput!],
  $id: String!,
  $isActive: Boolean,
  $name: String,
  $slug: String
) {
  updateForm(
    description: $description,
    fields: $fields,
    id: $id,
    isActive: $isActive,
    name: $name,
    slug: $slug
  ) {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    fields {
      ...FormFieldFragment
    }
    formAccessConditions {
      ...FormAccessConditionFragment
    }
    id
    isActive
    name
    slug
    subscriptionStatus
    updatedAt
  }
}
Variables
{
  "description": "abc123",
  "fields": [FormFieldInput],
  "id": "abc123",
  "isActive": true,
  "name": "xyz789",
  "slug": "xyz789"
}
Response
{
  "data": {
    "updateForm": {
      "activeSince": "2007-12-03T10:15:30Z",
      "branding": BrandingSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "description": "xyz789",
      "fields": [FormField],
      "formAccessConditions": [FormAccessCondition],
      "id": 4,
      "isActive": false,
      "name": "abc123",
      "slug": "abc123",
      "subscriptionStatus": "FREE",
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

updateFormBranding

Response

Returns a Form!

Arguments
Name Description
backgroundColor - String
discord - String
failureCallToActionButtonText - String
failureCallToActionText - String
failureCallToActionURL - String
fontColor - String
fontFamily - String
id - String!
logoFileContent - String
logoFileMime - String
logoFileName - String
primaryColor - String
secondaryColor - String
secondaryFailureCallToActionButtonText - String
secondaryFailureCallToActionURL - String
secondarySuccessCallToActionButtonText - String
secondarySuccessCallToActionURL - String
successCallToActionButtonText - String
successCallToActionText - String
successCallToActionURL - String
telegram - String
websiteURL - String
x - String
youtube - String

Example

Query
mutation updateFormBranding(
  $backgroundColor: String,
  $discord: String,
  $failureCallToActionButtonText: String,
  $failureCallToActionText: String,
  $failureCallToActionURL: String,
  $fontColor: String,
  $fontFamily: String,
  $id: String!,
  $logoFileContent: String,
  $logoFileMime: String,
  $logoFileName: String,
  $primaryColor: String,
  $secondaryColor: String,
  $secondaryFailureCallToActionButtonText: String,
  $secondaryFailureCallToActionURL: String,
  $secondarySuccessCallToActionButtonText: String,
  $secondarySuccessCallToActionURL: String,
  $successCallToActionButtonText: String,
  $successCallToActionText: String,
  $successCallToActionURL: String,
  $telegram: String,
  $websiteURL: String,
  $x: String,
  $youtube: String
) {
  updateFormBranding(
    backgroundColor: $backgroundColor,
    discord: $discord,
    failureCallToActionButtonText: $failureCallToActionButtonText,
    failureCallToActionText: $failureCallToActionText,
    failureCallToActionURL: $failureCallToActionURL,
    fontColor: $fontColor,
    fontFamily: $fontFamily,
    id: $id,
    logoFileContent: $logoFileContent,
    logoFileMime: $logoFileMime,
    logoFileName: $logoFileName,
    primaryColor: $primaryColor,
    secondaryColor: $secondaryColor,
    secondaryFailureCallToActionButtonText: $secondaryFailureCallToActionButtonText,
    secondaryFailureCallToActionURL: $secondaryFailureCallToActionURL,
    secondarySuccessCallToActionButtonText: $secondarySuccessCallToActionButtonText,
    secondarySuccessCallToActionURL: $secondarySuccessCallToActionURL,
    successCallToActionButtonText: $successCallToActionButtonText,
    successCallToActionText: $successCallToActionText,
    successCallToActionURL: $successCallToActionURL,
    telegram: $telegram,
    websiteURL: $websiteURL,
    x: $x,
    youtube: $youtube
  ) {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    fields {
      ...FormFieldFragment
    }
    formAccessConditions {
      ...FormAccessConditionFragment
    }
    id
    isActive
    name
    slug
    subscriptionStatus
    updatedAt
  }
}
Variables
{
  "backgroundColor": "xyz789",
  "discord": "xyz789",
  "failureCallToActionButtonText": "xyz789",
  "failureCallToActionText": "abc123",
  "failureCallToActionURL": "abc123",
  "fontColor": "abc123",
  "fontFamily": "abc123",
  "id": "xyz789",
  "logoFileContent": "abc123",
  "logoFileMime": "xyz789",
  "logoFileName": "xyz789",
  "primaryColor": "abc123",
  "secondaryColor": "xyz789",
  "secondaryFailureCallToActionButtonText": "abc123",
  "secondaryFailureCallToActionURL": "xyz789",
  "secondarySuccessCallToActionButtonText": "abc123",
  "secondarySuccessCallToActionURL": "xyz789",
  "successCallToActionButtonText": "xyz789",
  "successCallToActionText": "abc123",
  "successCallToActionURL": "abc123",
  "telegram": "xyz789",
  "websiteURL": "xyz789",
  "x": "xyz789",
  "youtube": "xyz789"
}
Response
{
  "data": {
    "updateFormBranding": {
      "activeSince": "2007-12-03T10:15:30Z",
      "branding": BrandingSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "xyz789",
      "description": "abc123",
      "fields": [FormField],
      "formAccessConditions": [FormAccessCondition],
      "id": "4",
      "isActive": true,
      "name": "abc123",
      "slug": "abc123",
      "subscriptionStatus": "FREE",
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

updatePoolDelegationAccessCondition

Response

Returns an AccessCondition!

Arguments
Name Description
id - String!
minDelegation - Int
minEpochs - Int
name - String
poolId - String

Example

Query
mutation updatePoolDelegationAccessCondition(
  $id: String!,
  $minDelegation: Int,
  $minEpochs: Int,
  $name: String,
  $poolId: String
) {
  updatePoolDelegationAccessCondition(
    id: $id,
    minDelegation: $minDelegation,
    minEpochs: $minEpochs,
    name: $name,
    poolId: $poolId
  ) {
    assetOwnerSettings {
      ...AccessConditionAssetOwnerSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    name
    poolDelegationSettings {
      ...AccessConditionPoolDelegationSettingsFragment
    }
    type
    updatedAt
    whitelistSettings {
      ...AccessConditionWhitelistSettingsFragment
    }
  }
}
Variables
{
  "id": "xyz789",
  "minDelegation": 987,
  "minEpochs": 987,
  "name": "xyz789",
  "poolId": "abc123"
}
Response
{
  "data": {
    "updatePoolDelegationAccessCondition": {
      "assetOwnerSettings": AccessConditionAssetOwnerSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "id": 4,
      "name": "abc123",
      "poolDelegationSettings": AccessConditionPoolDelegationSettings,
      "type": "ASSET_OWNER",
      "updatedAt": "2007-12-03T10:15:30Z",
      "whitelistSettings": AccessConditionWhitelistSettings
    }
  }
}

updateSpace

Response

Returns a Space!

Arguments
Name Description
description - String
id - String!
isActive - Boolean
name - String
slug - String

Example

Query
mutation updateSpace(
  $description: String,
  $id: String!,
  $isActive: Boolean,
  $name: String,
  $slug: String
) {
  updateSpace(
    description: $description,
    id: $id,
    isActive: $isActive,
    name: $name,
    slug: $slug
  ) {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    download {
      ...DecryptedFileFragment
    }
    files {
      ...FileFragment
    }
    id
    isActive
    name
    slug
    spaceAccessConditions {
      ...SpaceAccessConditionFragment
    }
    updatedAt
  }
}
Variables
{
  "description": "xyz789",
  "id": "abc123",
  "isActive": false,
  "name": "abc123",
  "slug": "xyz789"
}
Response
{
  "data": {
    "updateSpace": {
      "activeSince": "2007-12-03T10:15:30Z",
      "branding": BrandingSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "xyz789",
      "description": "xyz789",
      "download": [DecryptedFile],
      "files": [File],
      "id": "4",
      "isActive": false,
      "name": "xyz789",
      "slug": "abc123",
      "spaceAccessConditions": [SpaceAccessCondition],
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

updateSpaceBranding

Response

Returns a Space!

Arguments
Name Description
backgroundColor - String
discord - String
failureCallToActionButtonText - String
failureCallToActionText - String
failureCallToActionURL - String
fontColor - String
fontFamily - String
id - String!
logoFileContent - String
logoFileMime - String
logoFileName - String
primaryColor - String
secondaryColor - String
secondaryFailureCallToActionButtonText - String
secondaryFailureCallToActionURL - String
secondarySuccessCallToActionButtonText - String
secondarySuccessCallToActionURL - String
successCallToActionButtonText - String
successCallToActionText - String
successCallToActionURL - String
telegram - String
websiteURL - String
x - String
youtube - String

Example

Query
mutation updateSpaceBranding(
  $backgroundColor: String,
  $discord: String,
  $failureCallToActionButtonText: String,
  $failureCallToActionText: String,
  $failureCallToActionURL: String,
  $fontColor: String,
  $fontFamily: String,
  $id: String!,
  $logoFileContent: String,
  $logoFileMime: String,
  $logoFileName: String,
  $primaryColor: String,
  $secondaryColor: String,
  $secondaryFailureCallToActionButtonText: String,
  $secondaryFailureCallToActionURL: String,
  $secondarySuccessCallToActionButtonText: String,
  $secondarySuccessCallToActionURL: String,
  $successCallToActionButtonText: String,
  $successCallToActionText: String,
  $successCallToActionURL: String,
  $telegram: String,
  $websiteURL: String,
  $x: String,
  $youtube: String
) {
  updateSpaceBranding(
    backgroundColor: $backgroundColor,
    discord: $discord,
    failureCallToActionButtonText: $failureCallToActionButtonText,
    failureCallToActionText: $failureCallToActionText,
    failureCallToActionURL: $failureCallToActionURL,
    fontColor: $fontColor,
    fontFamily: $fontFamily,
    id: $id,
    logoFileContent: $logoFileContent,
    logoFileMime: $logoFileMime,
    logoFileName: $logoFileName,
    primaryColor: $primaryColor,
    secondaryColor: $secondaryColor,
    secondaryFailureCallToActionButtonText: $secondaryFailureCallToActionButtonText,
    secondaryFailureCallToActionURL: $secondaryFailureCallToActionURL,
    secondarySuccessCallToActionButtonText: $secondarySuccessCallToActionButtonText,
    secondarySuccessCallToActionURL: $secondarySuccessCallToActionURL,
    successCallToActionButtonText: $successCallToActionButtonText,
    successCallToActionText: $successCallToActionText,
    successCallToActionURL: $successCallToActionURL,
    telegram: $telegram,
    websiteURL: $websiteURL,
    x: $x,
    youtube: $youtube
  ) {
    activeSince
    branding {
      ...BrandingSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    description
    download {
      ...DecryptedFileFragment
    }
    files {
      ...FileFragment
    }
    id
    isActive
    name
    slug
    spaceAccessConditions {
      ...SpaceAccessConditionFragment
    }
    updatedAt
  }
}
Variables
{
  "backgroundColor": "abc123",
  "discord": "xyz789",
  "failureCallToActionButtonText": "abc123",
  "failureCallToActionText": "abc123",
  "failureCallToActionURL": "abc123",
  "fontColor": "abc123",
  "fontFamily": "xyz789",
  "id": "xyz789",
  "logoFileContent": "abc123",
  "logoFileMime": "xyz789",
  "logoFileName": "abc123",
  "primaryColor": "xyz789",
  "secondaryColor": "abc123",
  "secondaryFailureCallToActionButtonText": "abc123",
  "secondaryFailureCallToActionURL": "xyz789",
  "secondarySuccessCallToActionButtonText": "xyz789",
  "secondarySuccessCallToActionURL": "abc123",
  "successCallToActionButtonText": "abc123",
  "successCallToActionText": "abc123",
  "successCallToActionURL": "abc123",
  "telegram": "abc123",
  "websiteURL": "abc123",
  "x": "abc123",
  "youtube": "abc123"
}
Response
{
  "data": {
    "updateSpaceBranding": {
      "activeSince": "2007-12-03T10:15:30Z",
      "branding": BrandingSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "abc123",
      "description": "xyz789",
      "download": [DecryptedFile],
      "files": [File],
      "id": 4,
      "isActive": true,
      "name": "xyz789",
      "slug": "abc123",
      "spaceAccessConditions": [SpaceAccessCondition],
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

updateWhitelistAccessCondition

Response

Returns an AccessCondition!

Arguments
Name Description
allow - [String!]
id - String!
name - String

Example

Query
mutation updateWhitelistAccessCondition(
  $allow: [String!],
  $id: String!,
  $name: String
) {
  updateWhitelistAccessCondition(
    allow: $allow,
    id: $id,
    name: $name
  ) {
    assetOwnerSettings {
      ...AccessConditionAssetOwnerSettingsFragment
    }
    createdAt
    creator {
      ...UserFragment
    }
    creatorId
    id
    name
    poolDelegationSettings {
      ...AccessConditionPoolDelegationSettingsFragment
    }
    type
    updatedAt
    whitelistSettings {
      ...AccessConditionWhitelistSettingsFragment
    }
  }
}
Variables
{
  "allow": ["xyz789"],
  "id": "xyz789",
  "name": "abc123"
}
Response
{
  "data": {
    "updateWhitelistAccessCondition": {
      "assetOwnerSettings": AccessConditionAssetOwnerSettings,
      "createdAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "creatorId": "xyz789",
      "id": 4,
      "name": "xyz789",
      "poolDelegationSettings": AccessConditionPoolDelegationSettings,
      "type": "ASSET_OWNER",
      "updatedAt": "2007-12-03T10:15:30Z",
      "whitelistSettings": AccessConditionWhitelistSettings
    }
  }
}

Types

AccessCondition

Fields
Field Name Description
assetOwnerSettings - AccessConditionAssetOwnerSettings
createdAt - DateTime!
creator - User!
creatorId - String!
id - ID!
name - String!
poolDelegationSettings - AccessConditionPoolDelegationSettings
type - AccessConditionType!
updatedAt - DateTime!
whitelistSettings - AccessConditionWhitelistSettings
Example
{
  "assetOwnerSettings": AccessConditionAssetOwnerSettings,
  "createdAt": "2007-12-03T10:15:30Z",
  "creator": User,
  "creatorId": "xyz789",
  "id": 4,
  "name": "xyz789",
  "poolDelegationSettings": AccessConditionPoolDelegationSettings,
  "type": "ASSET_OWNER",
  "updatedAt": "2007-12-03T10:15:30Z",
  "whitelistSettings": AccessConditionWhitelistSettings
}

AccessConditionAssetOwnerSettings

Fields
Field Name Description
assetFingerprints - [String!]!
minAmount - Int!
policyId - String!
Example
{
  "assetFingerprints": ["xyz789"],
  "minAmount": 987,
  "policyId": "abc123"
}

AccessConditionPoolDelegationSettings

Fields
Field Name Description
minDelegation - Int!
minEpochs - Int!
poolId - String!
Example
{
  "minDelegation": 123,
  "minEpochs": 123,
  "poolId": "abc123"
}

AccessConditionType

Values
Enum Value Description

ASSET_OWNER

POOL_DELEGATION

WHITELIST

Example
"ASSET_OWNER"

AccessConditionWhitelistSettings

Fields
Field Name Description
allow - [String!]!
Example
{"allow": ["xyz789"]}

Boolean

Description

The Boolean scalar type represents true or false.

BrandingSettings

Fields
Field Name Description
backgroundColor - String
discord - String
failureCallToActionButtonText - String
failureCallToActionText - String
failureCallToActionURL - String
fontColor - String
fontFamily - String
logoFileContent - String
logoFileMime - String
logoFileName - String
primaryColor - String
secondaryColor - String
secondaryFailureCallToActionButtonText - String
secondaryFailureCallToActionURL - String
secondarySuccessCallToActionButtonText - String
secondarySuccessCallToActionURL - String
successCallToActionButtonText - String
successCallToActionText - String
successCallToActionURL - String
telegram - String
websiteURL - String
x - String
youtube - String
Example
{
  "backgroundColor": "abc123",
  "discord": "abc123",
  "failureCallToActionButtonText": "abc123",
  "failureCallToActionText": "xyz789",
  "failureCallToActionURL": "xyz789",
  "fontColor": "xyz789",
  "fontFamily": "abc123",
  "logoFileContent": "abc123",
  "logoFileMime": "abc123",
  "logoFileName": "xyz789",
  "primaryColor": "abc123",
  "secondaryColor": "abc123",
  "secondaryFailureCallToActionButtonText": "xyz789",
  "secondaryFailureCallToActionURL": "xyz789",
  "secondarySuccessCallToActionButtonText": "abc123",
  "secondarySuccessCallToActionURL": "xyz789",
  "successCallToActionButtonText": "abc123",
  "successCallToActionText": "xyz789",
  "successCallToActionURL": "xyz789",
  "telegram": "xyz789",
  "websiteURL": "abc123",
  "x": "xyz789",
  "youtube": "xyz789"
}

CheckFormAccessResult

Fields
Field Name Description
hasAccess - Boolean!
Example
{"hasAccess": true}

CheckSpaceAccessResult

Fields
Field Name Description
hasAccess - Boolean!
Example
{"hasAccess": false}

DashboardKeyMetric

Fields
Field Name Description
ctaEngagement - Float!
totalConnectedWallets - Int!
totalForms - Int!
totalInteractions - Int!
totalSpaces - Int!
totalUniqueEntries - Int!
totalUnlocks - Int!
Example
{
  "ctaEngagement": 987.65,
  "totalConnectedWallets": 123,
  "totalForms": 123,
  "totalInteractions": 123,
  "totalSpaces": 123,
  "totalUniqueEntries": 123,
  "totalUnlocks": 987
}

DateTime

Description

A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the date-time format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.

Example
"2007-12-03T10:15:30Z"

DecryptedFile

Fields
Field Name Description
content - String!
id - String!
mime - String!
name - String!
Example
{
  "content": "xyz789",
  "id": "xyz789",
  "mime": "abc123",
  "name": "xyz789"
}

DistributionEngagementCTAMetric

Fields
Field Name Description
fallbackCTA - Float!
successCTA - Float!
Example
{"fallbackCTA": 987.65, "successCTA": 123.45}

FallbackFunnelMetric

Fields
Field Name Description
fallbackCTA - Int!
unsuccessUnlocks - Int!
views - Int!
Example
{"fallbackCTA": 123, "unsuccessUnlocks": 987, "views": 987}

File

Description

The File object represents a stored data object with a unique name and encrypted content. The content can be decrypted and downloaded.

Fields
Field Name Description
createdAt - DateTime!
creator - User!
creatorId - String!
id - ID!
mime - String! Mime type of the file
name - String! Name of the file including extension if any
space - Space!
spaceId - String!
updatedAt - DateTime!
Example
{
  "createdAt": "2007-12-03T10:15:30Z",
  "creator": User,
  "creatorId": "xyz789",
  "id": "4",
  "mime": "abc123",
  "name": "xyz789",
  "space": Space,
  "spaceId": "xyz789",
  "updatedAt": "2007-12-03T10:15:30Z"
}

Float

Description

The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

Example
123.45

Form

Fields
Field Name Description
activeSince - DateTime!
branding - BrandingSettings
createdAt - DateTime!
creator - User!
creatorId - String!
description - String! Description of the form
fields - [FormField!]!
formAccessConditions - [FormAccessCondition!]! AccessConditions used for authenticate users to the form
id - ID!
isActive - Boolean!
name - String! Name of the form
slug - String!
subscriptionStatus - FormSubscriptionStatus!
updatedAt - DateTime!
Example
{
  "activeSince": "2007-12-03T10:15:30Z",
  "branding": BrandingSettings,
  "createdAt": "2007-12-03T10:15:30Z",
  "creator": User,
  "creatorId": "abc123",
  "description": "abc123",
  "fields": [FormField],
  "formAccessConditions": [FormAccessCondition],
  "id": 4,
  "isActive": true,
  "name": "xyz789",
  "slug": "abc123",
  "subscriptionStatus": "FREE",
  "updatedAt": "2007-12-03T10:15:30Z"
}

FormAccessCondition

Fields
Field Name Description
accessCondition - AccessCondition!
form - Form!
id - ID!
Example
{
  "accessCondition": AccessCondition,
  "form": Form,
  "id": 4
}

FormEntry

Fields
Field Name Description
createdAt - DateTime!
creator - User!
creatorId - String!
form - Form
formId - String
id - ID!
stakeKey - String
updatedAt - DateTime!
values - JSONObject!
Example
{
  "createdAt": "2007-12-03T10:15:30Z",
  "creator": User,
  "creatorId": "xyz789",
  "form": Form,
  "formId": "abc123",
  "id": 4,
  "stakeKey": "xyz789",
  "updatedAt": "2007-12-03T10:15:30Z",
  "values": {}
}

FormField

Fields
Field Name Description
key - String!
options - [String!]!
required - Boolean!
text - String!
type - FormFieldTypes!
Example
{
  "key": "xyz789",
  "options": ["xyz789"],
  "required": true,
  "text": "xyz789",
  "type": "ADDRESS"
}

FormFieldInput

Fields
Input Field Description
key - String!
options - [String!]
required - Boolean!
text - String!
type - FormFieldTypes!
Example
{
  "key": "xyz789",
  "options": ["xyz789"],
  "required": false,
  "text": "abc123",
  "type": "ADDRESS"
}

FormFieldTypes

Values
Enum Value Description

ADDRESS

DATE

EMAIL

LONG_TEXT

PHONE

SELECTION

TEXT

Example
"ADDRESS"

FormMetric

Fields
Field Name Description
formId - String!
formName - String!
unlocks - Int!
Example
{
  "formId": "xyz789",
  "formName": "abc123",
  "unlocks": 987
}

FormSubscriptionStatus

Values
Enum Value Description

FREE

PAID

Example
"FREE"

ID

Description

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

Example
4

Int

Description

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Example
987

Interaction

Fields
Field Name Description
action - InteractionActionType!
createdAt - DateTime!
creator - User!
creatorId - String!
event - JSONObject!
id - ID!
topic - String!
Example
{
  "action": "CREATE",
  "createdAt": "2007-12-03T10:15:30Z",
  "creator": User,
  "creatorId": "abc123",
  "event": {},
  "id": "4",
  "topic": "abc123"
}

InteractionActionType

Values
Enum Value Description

CREATE

DELETE

READ

UPDATE

Example
"CREATE"

JSONObject

Description

The JSONObject scalar type represents JSON objects as specified by ECMA-404.

Example
{}

Session

Fields
Field Name Description
id - ID!
lifetime - DateTime! Date when the token expires
token - String! Token identifying this session
user - User!
userId - String!
Example
{
  "id": "4",
  "lifetime": "2007-12-03T10:15:30Z",
  "token": "xyz789",
  "user": User,
  "userId": "abc123"
}

SignatureChallengeResponse

Fields
Field Name Description
message - String!
Example
{"message": "abc123"}

Space

Fields
Field Name Description
activeSince - DateTime!
branding - BrandingSettings
createdAt - DateTime!
creator - User!
creatorId - String!
description - String! Description of the space
download - [DecryptedFile!]!
files - [File!]! Files linked the space
id - ID!
isActive - Boolean!
name - String! Name of the space
slug - String!
spaceAccessConditions - [SpaceAccessCondition!]! AccessConditions used for authenticate users to the space
updatedAt - DateTime!
Example
{
  "activeSince": "2007-12-03T10:15:30Z",
  "branding": BrandingSettings,
  "createdAt": "2007-12-03T10:15:30Z",
  "creator": User,
  "creatorId": "xyz789",
  "description": "xyz789",
  "download": [DecryptedFile],
  "files": [File],
  "id": "4",
  "isActive": true,
  "name": "xyz789",
  "slug": "abc123",
  "spaceAccessConditions": [SpaceAccessCondition],
  "updatedAt": "2007-12-03T10:15:30Z"
}

SpaceAccessCondition

Fields
Field Name Description
accessCondition - AccessCondition!
id - ID!
space - Space!
Example
{
  "accessCondition": AccessCondition,
  "id": "4",
  "space": Space
}

SpaceMetric

Fields
Field Name Description
spaceId - String!
spaceName - String!
unlocks - Int!
Example
{
  "spaceId": "abc123",
  "spaceName": "abc123",
  "unlocks": 987
}

String

Description

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Example
"xyz789"

SubscriptionMetric

Fields
Field Name Description
entries - Int!
hasPaymentTx - Boolean!
reachedLimit - Boolean!
status - FormSubscriptionStatus!
Example
{"entries": 987, "hasPaymentTx": false, "reachedLimit": false, "status": "FREE"}

SubscriptionPaymentTx

Fields
Field Name Description
unsignedTx - String!
Example
{"unsignedTx": "abc123"}

SuccessFunnelMetric

Fields
Field Name Description
successCTA - Int!
successUnlocks - Int!
views - Int!
Example
{"successCTA": 123, "successUnlocks": 987, "views": 987}

TrendingSpaceMetric

Fields
Field Name Description
interactions - Int!
spaceId - String!
spaceName - String!
unlocks - Int!
users - Int!
Example
{
  "interactions": 123,
  "spaceId": "abc123",
  "spaceName": "abc123",
  "unlocks": 987,
  "users": 987
}

TrendingSpacesMetric

Fields
Field Name Description
spaces - [TrendingSpaceMetric!]! metrics per space
Example
{"spaces": [TrendingSpaceMetric]}

UnlocksPerFormMetric

Fields
Field Name Description
forms - [FormMetric!]! metrics per form
Example
{"forms": [FormMetric]}

UnlocksPerSpaceMetric

Fields
Field Name Description
spaces - [SpaceMetric!]! metrics per space
Example
{"spaces": [SpaceMetric]}

User

Fields
Field Name Description
cardanoAddress - String!
id - ID!
spaces - [Space!]!
Example
{
  "cardanoAddress": "abc123",
  "id": 4,
  "spaces": [Space]
}