API

Common

Getting Started

User

Register New User
Login
Logout
Refresh Access Token
Get User Profile
Update Profile
Upload Avatar
Delete User
Reset Password
Reset Password by ID

User Token

List User Tokens
Add User Token
Update Default User Token
Delete User Token
Verify User Token
Reset Verification Code

User vAtom

Get vAtom
Get vAtoms by Ids
Get vAtom Inventory
Search vAtoms
Geo Discover Groups
Geo Discover vAtoms
Update vAtoms
Perform Action
Trash vAtom

User Activity

Get My Threads
Get My Thread Messages

Template

List Templates
Get Template
Create Template
Update Template
Delete Template

Template Variation

List Variations
Get Variation
Create Variation
Update Variation
Delete Variation

vAtom

Emit vAtom

Template Action

List Actions
Get Action
Register Action Handler
Register Action
Update Action
Delete Action

Template Face

List Faces
Register Face
Update Face
Delete Face

Asset

Upload Assets
Get Assets
Delete Assets

Search vAtoms

POST
https://api.blockv.io/v1/vatom/discover

Overview

With the discover endpoint you can search for vAtoms which you are allowed to see (either because you own them or their visibility is set to public).

Search vAtoms Request

HTTP Headers

Content-Type: application/json App-Id: {app_id}

Payload Details

NameTypeDescription
scopeobjectScope filters the vatoms according to the key and value pair of the object
limitintThe max. number of records that are returned per page (default 100)
pageintThe number of the page that should be deplayed
[filter]arrayCollection of filters
returnobjectResponse configuration

Scope Object

NameTypeDescription
keystringThe key that is applied to filter the vAtoms
valuestringList of values used to filter the vAtoms
Valid Scope Keys
  • vAtom::vAtomType.owner
  • vAtom::vAtomType.template
  • vAtom::vAtomType.template_variation
  • vAtom::vAtomType.acquirable
  • vAtom::vAtomType.parent_id
Scope Value

Up to 5 comma separated scope values are allowed. They or combined by an OR operator.

$currentuser is a special value that gets replaced by the currently logged in users ID.

Filter Elements

NameTypeDescription
fieldstringThe field that is used in the filter
filter_opstringThe filter operation
valuestringThe value to which the field content is compared
bool_opstringBoolean operator that is used to combine two filter elements ( And , Or )
Supported fields
  • vAtom::vAtomType.publisher_fqdn
  • vAtom::vAtomType.template
  • vAtom::vAtomType.template_variation
  • vAtom::vAtomType.owner
  • vAtom::vAtomType.author
  • vAtom::vAtomType.parent_id
  • vAtom::vAtomType.category
  • vAtom::vAtomType.in_contract
  • vAtom::vAtomType.visibility_type
Supported filter operations
  • Eq equals
  • Ge greater or equal to
  • Gt greater than
  • Le less or equal to
  • Lt less than
  • Ne not equal to
  • Match field contains value

Return Object

NameTypeDescription
typestringCurrently only * is supported, which returns the whole object.

Sample Request

{
  "scope": {
    "key": "vAtom::vAtomType.owner",
    "value": "$currentuser"
  },
  "filters": [
    {
      "filter_elems": [
        {
          "field": "vAtom::vAtomType.template",
          "filter_op": "Match",
          "value": "publisher_fqdn*",
          "bool_op": "And"
        },
        {
          "field": "vAtom::vAtomType.parent_id",
          "filter_op": "Match",
          "value": "*",
          "bool_op": "And"
        }
      ]
    }
  ],
  "return": {
    "type": "*",
  }
}

Search vAtoms Response

Return & Error Codes

ErrorTypeDescription
200httpEverything is OK
403httpNot Authorized
©2020 BLOCKv
Info