Sections ▾

GET ​/api​/vaults

Gets all your documents stored in the vault. You can limit the documents returned by filtering by tags or by content contained in the document.

  
  curl -X GET "https://app.contexthub.com/api/vaults" \
       -H "Content-Type: application/json" \
       -H "CONTEXTHUB_DEVICE_ID: DB4E6157-D64F-43EE-B114-39A13D2B9BC7" \
       -H "Authorization: Token token=\"534e565f-335a-469d-974e-e18a85f00d2d\"" \
       -v \
  

Request

Example Request

{
  "key_path": "customer.address.city",
  "value": "houston",
  "tag": "office"
}

Example Parameters

Response

Example Response

[
  {
    "data": {
    },
    "vault_info": {
      "id": "6bf6fefb-2d4d-4a91-8a0a-ccc7ede5eaca",
      "tags": [
        "foo"
      ],
      "created_at": "2014-06-26T16:00:37.035Z",
      "updated_at": "2014-06-26T16:00:37.035Z",
      "tag_string": "tag1,tag2,tag3"
    }
  }
]

Response Parameters

Response Codes

Successful Response Codes

Failure Response Codes