Download OpenAPI specification:Download
Secure data sharing
Security Scheme Type | OAuth2 |
---|---|
implicit OAuth Flow | Authorization URL: https://auth.oasislabs.com/oauth/authorize Scopes:
|
authorizationCode OAuth Flow | Authorization URL: https://auth.oasislabs.com/oauth/authorize Token URL: https://auth.oasislabs.com/oauth/token Refresh URL: https://auth.oasislabs.com/oauth/token Scopes:
|
clientCredentials OAuth Flow | Token URL: https://auth.oasislabs.com/oauth/token Refresh URL: https://auth.oasislabs.com/oauth/token Scopes:
|
parcel.safe
) required | Array of objects (IdentityTokenVerifier) |
{- "tokenVerifiers": [
- {
- "sub": "IPoxXkdvFsrqzDdU7h3QqSs",
- "iss": "auth.oasislabs.com",
- "publicKey": {
- "kty": "EC",
- "crv": "P-256",
- "alg": "ES256",
- "use": "sig",
- "kid": "XKKNCsR7lzEQFc_nDHWMSaT4CrEhMK37JEI-p3s9AKI",
- "x": "1E96MvbMhsqxjhbfgQfGMNSimvIDklR3hguWn6-wrp4",
- "y": "X5qZ-aJjsCeFz-rv61LtfV24W7QDE41RVxUtSRpa03c"
}
}
]
}
{- "id": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "tokenVerifiers": [
- {
- "sub": "IPoxXkdvFsrqzDdU7h3QqSs",
- "iss": "auth.oasislabs.com",
- "publicKey": {
- "kty": "EC",
- "crv": "P-256",
- "alg": "ES256",
- "use": "sig",
- "kid": "XKKNCsR7lzEQFc_nDHWMSaT4CrEhMK37JEI-p3s9AKI",
- "x": "1E96MvbMhsqxjhbfgQfGMNSimvIDklR3hguWn6-wrp4",
- "y": "X5qZ-aJjsCeFz-rv61LtfV24W7QDE41RVxUtSRpa03c"
}
}
]
}
parcel.public
) {- "id": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "tokenVerifiers": [
- {
- "sub": "IPoxXkdvFsrqzDdU7h3QqSs",
- "iss": "auth.oasislabs.com",
- "publicKey": {
- "kty": "EC",
- "crv": "P-256",
- "alg": "ES256",
- "use": "sig",
- "kid": "XKKNCsR7lzEQFc_nDHWMSaT4CrEhMK37JEI-p3s9AKI",
- "x": "1E96MvbMhsqxjhbfgQfGMNSimvIDklR3hguWn6-wrp4",
- "y": "X5qZ-aJjsCeFz-rv61LtfV24W7QDE41RVxUtSRpa03c"
}
}
]
}
parcel.public
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
{- "id": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "tokenVerifiers": [
- {
- "sub": "IPoxXkdvFsrqzDdU7h3QqSs",
- "iss": "auth.oasislabs.com",
- "publicKey": {
- "kty": "EC",
- "crv": "P-256",
- "alg": "ES256",
- "use": "sig",
- "kid": "XKKNCsR7lzEQFc_nDHWMSaT4CrEhMK37JEI-p3s9AKI",
- "x": "1E96MvbMhsqxjhbfgQfGMNSimvIDklR3hguWn6-wrp4",
- "y": "X5qZ-aJjsCeFz-rv61LtfV24W7QDE41RVxUtSRpa03c"
}
}
]
}
parcel.full
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
The identity's new fields.
required | Array of objects (IdentityTokenVerifier) |
{- "id": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "tokenVerifiers": [
- {
- "sub": "IPoxXkdvFsrqzDdU7h3QqSs",
- "iss": "auth.oasislabs.com",
- "publicKey": {
- "kty": "EC",
- "crv": "P-256",
- "alg": "ES256",
- "use": "sig",
- "kid": "XKKNCsR7lzEQFc_nDHWMSaT4CrEhMK37JEI-p3s9AKI",
- "x": "1E96MvbMhsqxjhbfgQfGMNSimvIDklR3hguWn6-wrp4",
- "y": "X5qZ-aJjsCeFz-rv61LtfV24W7QDE41RVxUtSRpa03c"
}
}
]
}
{- "id": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "tokenVerifiers": [
- {
- "sub": "IPoxXkdvFsrqzDdU7h3QqSs",
- "iss": "auth.oasislabs.com",
- "publicKey": {
- "kty": "EC",
- "crv": "P-256",
- "alg": "ES256",
- "use": "sig",
- "kid": "XKKNCsR7lzEQFc_nDHWMSaT4CrEhMK37JEI-p3s9AKI",
- "x": "1E96MvbMhsqxjhbfgQfGMNSimvIDklR3hguWn6-wrp4",
- "y": "X5qZ-aJjsCeFz-rv61LtfV24W7QDE41RVxUtSRpa03c"
}
}
]
}
parcel.full
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
{- "error": "string"
}
parcel.safe
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
object Controls the number of results returned and after what offset |
{- "nextPageToken": "string",
- "results": [
- {
- "address": "0x16355dda54b8421f8e173d12b96371a36f76d633"
}
]
}
parcel.full
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
Proof of ownership of the Ethereum account.
proof required | string <hex> An hex-encoded signature of the string
|
{- "proof": "0x0b712114734b34fc51a16d32e22f428a28caffdf0c608e42ff16bed204a6b728666077fc966147f4e533e68452341da2e6d064f1a9410456d35476759d0f62f61b"
}
{- "address": "0x16355dda54b8421f8e173d12b96371a36f76d633"
}
parcel.full
) identityId required | string (IdentityId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of the identity. |
ethereumAddress required | string <hex> Example: 0x16355dda54b8421f8e173d12b96371a36f76d633 An Ethereum address representing a linked identity. |
{- "error": "string"
}
parcel.public
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
object The filter to apply, if any. | |
object Controls the number of results returned and after what offset |
{- "nextPageToken": "string",
- "results": [
- {
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Permission for Example App",
- "description": "Permission for Example App to use personal data of participants.",
- "allowText": "I allow Example App to use all of my data. Example App will have full functionality.",
- "denyText": "I disallow Example App from using data. Example App will have limited functionality.",
- "grants": [
- {
- "granter": "participant",
- "grantee": "app",
- "condition": {
- "document.creator": {
- "$eq": "IPoxXkdvFsrqzDdU7h3QqSs"
}
}
}
], - "id": "P7kGbYvko5CSM6ixzpVUKnH",
- "appId": "APXf29TgTSMFeHGXY627vi5"
}
]
}
parcel.public
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
object Controls the number of results returned and after what offset |
{- "nextPageToken": "string",
- "results": [
- {
- "token": "TVehZvHzZ2ADnjZx1qoLrTq",
- "balance": 0
}
]
}
parcel.public
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
tokenId required | string (TokenId) Example: TVehZvHzZ2ADnjZx1qoLrTq The unique identifier of the Parcel data-backed token. |
object Controls the number of results returned and after what offset |
{- "token": "TVehZvHzZ2ADnjZx1qoLrTq",
- "balance": 0
}
An alias for POST /tokens/{tokenId}/transfers
.
parcel.full
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
tokenId required | string (TokenId) Example: TVehZvHzZ2ADnjZx1qoLrTq The unique identifier of the Parcel data-backed token. |
required | Array of objects (IdentityTokenVerifier) |
{- "id": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "tokenVerifiers": [
- {
- "sub": "IPoxXkdvFsrqzDdU7h3QqSs",
- "iss": "auth.oasislabs.com",
- "publicKey": {
- "kty": "EC",
- "crv": "P-256",
- "alg": "ES256",
- "use": "sig",
- "kid": "XKKNCsR7lzEQFc_nDHWMSaT4CrEhMK37JEI-p3s9AKI",
- "x": "1E96MvbMhsqxjhbfgQfGMNSimvIDklR3hguWn6-wrp4",
- "y": "X5qZ-aJjsCeFz-rv61LtfV24W7QDE41RVxUtSRpa03c"
}
}
]
}
{- "error": "string"
}
parcel.full
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
permissionId required | string (PermissionId) Example: P7kGbYvko5CSM6ixzpVUKnH The unique identifier of the permission. |
{- "grants": [
- {
- "id": "GSjAcmpmKPTfeCxrfbs4kSe",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "granter": "IPoxXkdvFsrqzDdU7h3QqSs",
- "condition": {
- "document.tags": {
- "$contains": "for-sharing"
}
}, - "capabilities": "read"
}
]
}
parcel.public
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
permissionId required | string (PermissionId) Example: P7kGbYvko5CSM6ixzpVUKnH The unique identifier of the permission. |
{- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Permission for Example App",
- "description": "Permission for Example App to use personal data of participants.",
- "allowText": "I allow Example App to use all of my data. Example App will have full functionality.",
- "denyText": "I disallow Example App from using data. Example App will have limited functionality.",
- "grants": [
- {
- "granter": "participant",
- "grantee": "app",
- "condition": {
- "document.creator": {
- "$eq": "IPoxXkdvFsrqzDdU7h3QqSs"
}
}
}
], - "id": "P7kGbYvko5CSM6ixzpVUKnH",
- "appId": "APXf29TgTSMFeHGXY627vi5"
}
parcel.full
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
permissionId required | string (PermissionId) Example: P7kGbYvko5CSM6ixzpVUKnH The unique identifier of the permission. |
{- "error": "string"
}
Accepts a new document, encrypting the data with a secure random key.
This endpoint will redirect to https://storage.oasislabs.com/v1/parcel.
If your HTTP client does not resend the Authorization
header on redirect (many don't), you must upload to the storage URL directly!
parcel.safe
) required | object (DocumentCreateOrUpdateParams) |
data required | string <binary> |
{- "id": "DSgUhs1oiQ8vr5pQH8pgfgs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs",
- "size": 1024,
- "dataUrl": "parcel://storage/ea2216c1-dd52-4f6e-aa39-f75d39e20bdc",
- "details": {
- "title": "Document!",
- "tags": [
- "machine learning",
- "parquet"
]
}
}
Return public information about documents that match the (optional) search parameters.
parcel.public
) object Controls the number of results returned and after what offset |
selectedByCondition | object Search for documents that would be selected if a grant with the specified condition were created. Use this field for simulating a grant. If |
object Search for documents that can be accessed in the provided context. This field allows you to discover documents that you can access either yourself, or from a job. |
{- "selectedByCondition": {
- "document.owner": {
- "$ne": "IPoxXkdvFsrqzDdU7h3QqSs"
}
}, - "accessibleInContext": {
- "accessor": "ITupSpS6DN1FE9DV8fKLHQi"
}
}
{- "nextPageToken": "string",
- "results": [
- {
- "id": "DSgUhs1oiQ8vr5pQH8pgfgs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs",
- "size": 1024,
- "dataUrl": "parcel://storage/ea2216c1-dd52-4f6e-aa39-f75d39e20bdc",
- "details": {
- "title": "Document!",
- "tags": [
- "machine learning",
- "parquet"
]
}
}
]
}
parcel.public
) documentId required | string (DocumentId) Example: DSgUhs1oiQ8vr5pQH8pgfgs The unique identifier of the document. |
{- "id": "DSgUhs1oiQ8vr5pQH8pgfgs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs",
- "size": 1024,
- "dataUrl": "parcel://storage/ea2216c1-dd52-4f6e-aa39-f75d39e20bdc",
- "details": {
- "title": "Document!",
- "tags": [
- "machine learning",
- "parquet"
]
}
}
parcel.full
) documentId required | string (DocumentId) Example: DSgUhs1oiQ8vr5pQH8pgfgs The unique identifier of the document. |
The document's new fields.
required | IdentityId (string) or AppId (string) or EscrowAccount (string) Upload the document and set the initial owner to either the specified identity or the tokenization escrow identity in your name. |
required | object A dictionary of user-provided document details. Any fields not defined by in this API are not used by Parcel and contain arbitrary application-specific data. |
{- "id": "DSgUhs1oiQ8vr5pQH8pgfgs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs",
- "size": 1024,
- "dataUrl": "parcel://storage/ea2216c1-dd52-4f6e-aa39-f75d39e20bdc",
- "details": {
- "title": "Document!",
- "tags": [
- "machine learning",
- "parquet"
]
}
}
{- "id": "DSgUhs1oiQ8vr5pQH8pgfgs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs",
- "size": 1024,
- "dataUrl": "parcel://storage/ea2216c1-dd52-4f6e-aa39-f75d39e20bdc",
- "details": {
- "title": "Document!",
- "tags": [
- "machine learning",
- "parquet"
]
}
}
parcel.full
) documentId required | string (DocumentId) Example: DSgUhs1oiQ8vr5pQH8pgfgs The unique identifier of the document. |
{- "error": "string"
}
Decrypts and downloads a document that you have been granted.
This endpoint will redirect to https://storage.oasislabs.com/v1/parcel/{documentId}/download.
If your HTTP client does not resend the Authorization
header on redirect (many don't), you must upload to the storage URL directly!
parcel.safe
) documentId required | string (DocumentId) Example: DSgUhs1oiQ8vr5pQH8pgfgs The unique identifier of the document. |
{- "error": "string"
}
Return the access events for an existing document.
parcel.public
) documentId required | string (DocumentId) Example: DSgUhs1oiQ8vr5pQH8pgfgs The unique identifier of the document. |
object The filter to apply, if any. Set fields are ANDed together. | |
object Controls the number of results returned and after what offset |
{- "nextPageToken": "string",
- "results": [
- {
- "createdAt": "2020-12-09T09:51:41.000Z",
- "document": "DSgUhs1oiQ8vr5pQH8pgfgs",
- "accessor": "IPoxXkdvFsrqzDdU7h3QqSs"
}
]
}
parcel.public
) name required | string The name of the database. |
{- "name": "My Database"
}
{- "id": "SW7PKHxK7FUFkpwxwW7HLf5",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs",
- "name": "My Database"
}
parcel.public
) object The filter to apply, if any. | |
object Controls the number of results returned and after what offset |
{- "nextPageToken": "string",
- "results": [
- {
- "id": "SW7PKHxK7FUFkpwxwW7HLf5",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs",
- "name": "My Database"
}
]
}
All fields are public.
parcel.public
) databaseId required | string (DatabaseId) Example: SW7PKHxK7FUFkpwxwW7HLf5 The unique identifier of the database. |
{- "id": "SW7PKHxK7FUFkpwxwW7HLf5",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs",
- "name": "My Database"
}
parcel.full
) databaseId required | string (DatabaseId) Example: SW7PKHxK7FUFkpwxwW7HLf5 The unique identifier of the database. |
name required | string The name of the database. |
id required | string (DatabaseId) Database unique identifier |
owner required | string (IdentityId) Identity unique identifier |
{- "id": "SW7PKHxK7FUFkpwxwW7HLf5",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs",
- "name": "My Database"
}
{- "id": "SW7PKHxK7FUFkpwxwW7HLf5",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs",
- "name": "My Database"
}
parcel.safe
) databaseId required | string (DatabaseId) Example: SW7PKHxK7FUFkpwxwW7HLf5 The unique identifier of the database. |
sql required | string <sql> |
param | object |
{- "sql": "CREATE TABLE threat_intels (wallet TEXT, inner TEXT, instance INTEGER, data JSON)",
- "params": { }
}
[- { }
]
parcel.full
) databaseId required | string (DatabaseId) Example: SW7PKHxK7FUFkpwxwW7HLf5 The unique identifier of the database. |
{- "error": "string"
}
parcel.safe
) databaseId required | string (DatabaseId) Example: SW7PKHxK7FUFkpwxwW7HLf5 The unique identifier of the database. |
tableName required | string |
rows required | array |
{- "tableName": "threat_intels",
- "rows": [
- {
- "wallet": "0x1234",
- "inner": "safe",
- "level": 3,
- "data": {
- "extra": null
}
}, - {
- "wallet": "0x4567",
- "inner": "unsafe",
- "level": 8,
- "data": {
- "extra": {
- "origin": "apple"
}
}
}
]
}
[- { }
]
parcel.public
) object The filter to apply, if any. | |
object Controls the number of results returned and after what offset |
{- "nextPageToken": "string",
- "results": [
- {
- "acceptanceText": "Cool, let's get started!",
- "admins": [
- "ITupSpS6DN1FE9DV8fKLHQi"
], - "allowUserUploads": true,
- "brandingColor": "#ff3f0f",
- "category": "example apps",
- "collaborators": [
- "ISmEcSerfVhSspezb44dwLD"
], - "extendedDescription": "Provides the most superlative reciprocal agreements pertaining to the use of\ncollections of information.\n",
- "invitationText": "Hello, please use our app.",
- "inviteOnly": false,
- "invites": [ ],
- "name": "App!",
- "organization": "Example App",
- "privacyPolicy": "We will never misuse your data. In fact, we can't even access it!",
- "published": false,
- "rejectionText": "Okay, maybe some other time then.",
- "shortDescription": "High quality data sharing.",
- "termsAndConditions": "We won't do anything bad and neither will you.",
- "id": "APXf29TgTSMFeHGXY627vi5",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs"
}
]
}
parcel.public
) acceptanceText required | string The text shown to the user after accepting the app's invitation but before being returned to the organization's website. |
allowUserUploads required | boolean Whether to allow users to directly contribute documents to this app. |
brandingColor required | string <RGB hex> The organizations primary brand color that will be used when rendering the app invitation, etc. |
category required | string A tag describing the app's category (e.g., health, finance) |
extendedDescription required | string An extended description of the app. |
homepageUrl required | string <url> A URL pointing to the app publisher's homepage. |
invitationText required | string The text shown to the user when viewing this app's invitation. |
inviteOnly required | boolean Whether this app can be joined by anyone, or a select set of
identities. If participation is invite-only, the |
invites required | Array of strings (IdentityId) The set of identities that are permitted to join this app. |
logoUrl required | string <url> A URL pointing to the app's logo. |
name required | string The name of the app. |
organization required | string The name of the app publisher's organization. |
privacyPolicy required | string <url> A link to the text presented to the user when viewing the app's privacy policy. |
rejectionText required | string The text shown to the user after rejecting the app's invitation. |
shortDescription required | string The short description of this app seen by users when shown the app's summary. |
termsAndConditions required | string <url> A link to the text presented to the user when viewing the app's Terms & Conditions. |
required | object (IdentityCreateParams) |
{- "acceptanceText": "Cool, let's get started!",
- "admins": [
- "ITupSpS6DN1FE9DV8fKLHQi"
], - "allowUserUploads": true,
- "brandingColor": "#ff3f0f",
- "category": "example apps",
- "collaborators": [
- "ISmEcSerfVhSspezb44dwLD"
], - "extendedDescription": "Provides the most superlative reciprocal agreements pertaining to the use of\ncollections of information.\n",
- "invitationText": "Hello, please use our app.",
- "inviteOnly": false,
- "invites": [ ],
- "name": "App!",
- "organization": "Example App",
- "privacyPolicy": "We will never misuse your data. In fact, we can't even access it!",
- "published": false,
- "rejectionText": "Okay, maybe some other time then.",
- "shortDescription": "High quality data sharing.",
- "termsAndConditions": "We won't do anything bad and neither will you.",
- "identity": {
- "tokenVerifiers": [
- {
- "sub": "ISmEcSerfVhSspezb44dwLD",
- "iss": "auth.oasislabs.com",
- "publicKey": {
- "kty": "EC",
- "crv": "P-256",
- "alg": "ES256",
- "use": "sig",
- "kid": "XKKNCsR7lzEQFc_nDHWMSaT4CrEhMK37JEI-p3s9AKI",
- "x": "1E96MvbMhsqxjhbfgQfGMNSimvIDklR3hguWn6-wrp4",
- "y": "X5qZ-aJjsCeFz-rv61LtfV24W7QDE41RVxUtSRpa03c"
}
}
]
}
}
{- "acceptanceText": "Cool, let's get started!",
- "admins": [
- "ITupSpS6DN1FE9DV8fKLHQi"
], - "allowUserUploads": true,
- "brandingColor": "#ff3f0f",
- "category": "example apps",
- "collaborators": [
- "ISmEcSerfVhSspezb44dwLD"
], - "extendedDescription": "Provides the most superlative reciprocal agreements pertaining to the use of\ncollections of information.\n",
- "invitationText": "Hello, please use our app.",
- "inviteOnly": false,
- "invites": [ ],
- "name": "App!",
- "organization": "Example App",
- "privacyPolicy": "We will never misuse your data. In fact, we can't even access it!",
- "published": false,
- "rejectionText": "Okay, maybe some other time then.",
- "shortDescription": "High quality data sharing.",
- "termsAndConditions": "We won't do anything bad and neither will you.",
- "id": "APXf29TgTSMFeHGXY627vi5",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs"
}
The owner will receive private and shared fields. Invitees will only receive shared fields.
parcel.public
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
{- "acceptanceText": "Cool, let's get started!",
- "admins": [
- "ITupSpS6DN1FE9DV8fKLHQi"
], - "allowUserUploads": true,
- "brandingColor": "#ff3f0f",
- "category": "example apps",
- "collaborators": [
- "ISmEcSerfVhSspezb44dwLD"
], - "extendedDescription": "Provides the most superlative reciprocal agreements pertaining to the use of\ncollections of information.\n",
- "invitationText": "Hello, please use our app.",
- "inviteOnly": false,
- "invites": [ ],
- "name": "App!",
- "organization": "Example App",
- "privacyPolicy": "We will never misuse your data. In fact, we can't even access it!",
- "published": false,
- "rejectionText": "Okay, maybe some other time then.",
- "shortDescription": "High quality data sharing.",
- "termsAndConditions": "We won't do anything bad and neither will you.",
- "id": "APXf29TgTSMFeHGXY627vi5",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs"
}
parcel.full
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
The app's new fields.
acceptanceText required | string The text shown to the user after accepting the app's invitation but before being returned to the organization's website. |
allowUserUploads required | boolean Whether to allow users to directly contribute documents to this app. |
brandingColor required | string <RGB hex> The organizations primary brand color that will be used when rendering the app invitation, etc. |
category required | string A tag describing the app's category (e.g., health, finance) |
extendedDescription required | string An extended description of the app. |
homepageUrl required | string <url> A URL pointing to the app publisher's homepage. |
invitationText required | string The text shown to the user when viewing this app's invitation. |
inviteOnly required | boolean Whether this app can be joined by anyone, or a select set of
identities. If participation is invite-only, the |
invites required | Array of strings The set of identities that are permitted to join this app. |
logoUrl required | string <url> A URL pointing to the app's logo. |
name required | string The name of the app. |
organization required | string The name of the app publisher's organization. |
privacyPolicy required | string <url> A link to the text presented to the user when viewing the app's privacy policy. |
rejectionText required | string The text shown to the user after rejecting the app's invitation. |
shortDescription required | string The short description of this app seen by users when shown the app's summary. |
termsAndConditions required | string <url> A link to the text presented to the user when viewing the app's Terms & Conditions. |
owner required | string (IdentityId) Identity unique identifier |
admins required | Array of strings (IdentityId) |
collaborators required | Array of strings (IdentityId) |
published required | boolean Whether this app has been published and is able to be joined. Once an app is published, it cannot be unpublished. |
{- "acceptanceText": "Cool, let's get started!",
- "admins": [
- "ITupSpS6DN1FE9DV8fKLHQi"
], - "allowUserUploads": true,
- "brandingColor": "#ff3f0f",
- "category": "example apps",
- "collaborators": [
- "ISmEcSerfVhSspezb44dwLD"
], - "extendedDescription": "Provides the most superlative reciprocal agreements pertaining to the use of\ncollections of information.\n",
- "invitationText": "Hello, please use our app.",
- "inviteOnly": false,
- "invites": [ ],
- "name": "App!",
- "organization": "Example App",
- "privacyPolicy": "We will never misuse your data. In fact, we can't even access it!",
- "published": false,
- "rejectionText": "Okay, maybe some other time then.",
- "shortDescription": "High quality data sharing.",
- "termsAndConditions": "We won't do anything bad and neither will you.",
- "id": "APXf29TgTSMFeHGXY627vi5",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs"
}
{- "acceptanceText": "Cool, let's get started!",
- "admins": [
- "ITupSpS6DN1FE9DV8fKLHQi"
], - "allowUserUploads": true,
- "brandingColor": "#ff3f0f",
- "category": "example apps",
- "collaborators": [
- "ISmEcSerfVhSspezb44dwLD"
], - "extendedDescription": "Provides the most superlative reciprocal agreements pertaining to the use of\ncollections of information.\n",
- "invitationText": "Hello, please use our app.",
- "inviteOnly": false,
- "invites": [ ],
- "name": "App!",
- "organization": "Example App",
- "privacyPolicy": "We will never misuse your data. In fact, we can't even access it!",
- "published": false,
- "rejectionText": "Okay, maybe some other time then.",
- "shortDescription": "High quality data sharing.",
- "termsAndConditions": "We won't do anything bad and neither will you.",
- "id": "APXf29TgTSMFeHGXY627vi5",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs"
}
parcel.full
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
{- "error": "string"
}
A convenience method for getting the app's identity. In fact, it's possible to call
the /identities/{id}
endpoint with the app's own app ID since app IDs are
also identity Ids.
parcel.public
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
{- "id": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "tokenVerifiers": [
- {
- "sub": "IPoxXkdvFsrqzDdU7h3QqSs",
- "iss": "auth.oasislabs.com",
- "publicKey": {
- "kty": "EC",
- "crv": "P-256",
- "alg": "ES256",
- "use": "sig",
- "kid": "XKKNCsR7lzEQFc_nDHWMSaT4CrEhMK37JEI-p3s9AKI",
- "x": "1E96MvbMhsqxjhbfgQfGMNSimvIDklR3hguWn6-wrp4",
- "y": "X5qZ-aJjsCeFz-rv61LtfV24W7QDE41RVxUtSRpa03c"
}
}
]
}
parcel.full
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
The app identity's new fields.
required | Array of objects (IdentityTokenVerifier) |
{- "id": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "tokenVerifiers": [
- {
- "sub": "IPoxXkdvFsrqzDdU7h3QqSs",
- "iss": "auth.oasislabs.com",
- "publicKey": {
- "kty": "EC",
- "crv": "P-256",
- "alg": "ES256",
- "use": "sig",
- "kid": "XKKNCsR7lzEQFc_nDHWMSaT4CrEhMK37JEI-p3s9AKI",
- "x": "1E96MvbMhsqxjhbfgQfGMNSimvIDklR3hguWn6-wrp4",
- "y": "X5qZ-aJjsCeFz-rv61LtfV24W7QDE41RVxUtSRpa03c"
}
}
]
}
{- "id": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "tokenVerifiers": [
- {
- "sub": "IPoxXkdvFsrqzDdU7h3QqSs",
- "iss": "auth.oasislabs.com",
- "publicKey": {
- "kty": "EC",
- "crv": "P-256",
- "alg": "ES256",
- "use": "sig",
- "kid": "XKKNCsR7lzEQFc_nDHWMSaT4CrEhMK37JEI-p3s9AKI",
- "x": "1E96MvbMhsqxjhbfgQfGMNSimvIDklR3hguWn6-wrp4",
- "y": "X5qZ-aJjsCeFz-rv61LtfV24W7QDE41RVxUtSRpa03c"
}
}
]
}
parcel.public
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
object The filter to apply, if any. | |
object Controls the number of results returned and after what offset |
{- "nextPageToken": "string",
- "results": [
- {
- "id": "C63oxRsDuqf9RTW36cDXRxz",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Example Client",
- "type": "frontend",
}
]
}
parcel.full
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
type required | string Value: "frontend" |
redirectUris required | Array of strings <url> The client's set of allowed redirect URIs. |
postLogoutRedirectUris required | Array of strings <url> The client's set of allowed post-logout redirect URIs. |
name required | string The name of this client. |
{- "type": "frontend",
- "name": "Example Client"
}
{- "type": "frontend",
- "id": "C63oxRsDuqf9RTW36cDXRxz",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Example Client"
}
parcel.public
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
clientId required | string (ClientId) Example: C63oxRsDuqf9RTW36cDXRxz The unique identifier of the client. |
{- "type": "frontend",
- "id": "C63oxRsDuqf9RTW36cDXRxz",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Example Client"
}
parcel.full
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
clientId required | string (ClientId) Example: C63oxRsDuqf9RTW36cDXRxz The unique identifier of the client. |
The update to apply.
type required | string Value: "frontend" |
redirectUris required | Array of strings <url> The client's set of allowed redirect URIs. |
postLogoutRedirectUris required | Array of strings <url> The client's set of allowed post-logout redirect URIs. |
name required | string The name of this client. |
{- "type": "frontend",
- "id": "C63oxRsDuqf9RTW36cDXRxz",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Example Client"
}
{- "type": "frontend",
- "id": "C63oxRsDuqf9RTW36cDXRxz",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Example Client"
}
parcel.full
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
clientId required | string (ClientId) Example: C63oxRsDuqf9RTW36cDXRxz The unique identifier of the client. |
{- "error": "string"
}
parcel.public
) clientId required | string (ClientId) Example: C63oxRsDuqf9RTW36cDXRxz The unique identifier of the client. |
{- "type": "frontend",
- "id": "C63oxRsDuqf9RTW36cDXRxz",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Example Client"
}
parcel.public
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
[- {
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Permission for Example App",
- "description": "Permission for Example App to use personal data of participants.",
- "allowText": "I allow Example App to use all of my data. Example App will have full functionality.",
- "denyText": "I disallow Example App from using data. Example App will have limited functionality.",
- "grants": [
- {
- "granter": "participant",
- "grantee": "app",
- "condition": {
- "document.creator": {
- "$eq": "IPoxXkdvFsrqzDdU7h3QqSs"
}
}
}
], - "id": "P7kGbYvko5CSM6ixzpVUKnH",
- "appId": "APXf29TgTSMFeHGXY627vi5"
}
]
parcel.full
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
required | Array of objects (GrantSpec) |
name required | string The name of this permission. |
description required | string The description of this permission seen by users when shown in an app. |
allowText required | string Text seen by users when accepting this permission. |
denyText required | string Text seen by users when denying this permission. |
{- "name": "Permission for Example App",
- "description": "Permission for Example App to use personal data of participants.",
- "allowText": "I allow Example App to use all of my data. Example App will have full functionality.",
- "denyText": "I disallow Example App from using data. Example App will have limited functionality.",
- "grants": [
- {
- "granter": "participant",
- "grantee": "app",
- "condition": {
- "document.creator": {
- "$eq": "IPoxXkdvFsrqzDdU7h3QqSs"
}
}
}
]
}
{- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Permission for Example App",
- "description": "Permission for Example App to use personal data of participants.",
- "allowText": "I allow Example App to use all of my data. Example App will have full functionality.",
- "denyText": "I disallow Example App from using data. Example App will have limited functionality.",
- "grants": [
- {
- "granter": "participant",
- "grantee": "app",
- "condition": {
- "document.creator": {
- "$eq": "IPoxXkdvFsrqzDdU7h3QqSs"
}
}
}
], - "id": "P7kGbYvko5CSM6ixzpVUKnH",
- "appId": "APXf29TgTSMFeHGXY627vi5"
}
parcel.public
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
permissionId required | string (PermissionId) Example: P7kGbYvko5CSM6ixzpVUKnH The unique identifier of the permission. |
{- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Permission for Example App",
- "description": "Permission for Example App to use personal data of participants.",
- "allowText": "I allow Example App to use all of my data. Example App will have full functionality.",
- "denyText": "I disallow Example App from using data. Example App will have limited functionality.",
- "grants": [
- {
- "granter": "participant",
- "grantee": "app",
- "condition": {
- "document.creator": {
- "$eq": "IPoxXkdvFsrqzDdU7h3QqSs"
}
}
}
], - "id": "P7kGbYvko5CSM6ixzpVUKnH",
- "appId": "APXf29TgTSMFeHGXY627vi5"
}
parcel.full
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
permissionId required | string (PermissionId) Example: P7kGbYvko5CSM6ixzpVUKnH The unique identifier of the permission. |
{- "error": "string"
}
parcel.public
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
object The filter to apply, if any. | |
object Controls the number of results returned and after what offset |
{- "nextPageToken": "string",
- "results": [
- {
- "id": "C63oxRsDuqf9RTW36cDXRxz",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Example Client",
- "type": "frontend",
}
]
}
parcel.full
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
type required | string Value: "frontend" |
redirectUris required | Array of strings <url> The client's set of allowed redirect URIs. |
postLogoutRedirectUris required | Array of strings <url> The client's set of allowed post-logout redirect URIs. |
name required | string The name of this client. |
{- "type": "frontend",
- "name": "Example Client"
}
{- "type": "frontend",
- "id": "C63oxRsDuqf9RTW36cDXRxz",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Example Client"
}
parcel.public
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
clientId required | string (ClientId) Example: C63oxRsDuqf9RTW36cDXRxz The unique identifier of the client. |
{- "type": "frontend",
- "id": "C63oxRsDuqf9RTW36cDXRxz",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Example Client"
}
parcel.full
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
clientId required | string (ClientId) Example: C63oxRsDuqf9RTW36cDXRxz The unique identifier of the client. |
The update to apply.
type required | string Value: "frontend" |
redirectUris required | Array of strings <url> The client's set of allowed redirect URIs. |
postLogoutRedirectUris required | Array of strings <url> The client's set of allowed post-logout redirect URIs. |
name required | string The name of this client. |
{- "type": "frontend",
- "id": "C63oxRsDuqf9RTW36cDXRxz",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Example Client"
}
{- "type": "frontend",
- "id": "C63oxRsDuqf9RTW36cDXRxz",
- "creator": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Example Client"
}
parcel.full
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
clientId required | string (ClientId) Example: C63oxRsDuqf9RTW36cDXRxz The unique identifier of the client. |
{- "error": "string"
}
parcel.public
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
object The filter to apply, if any. | |
object Controls the number of results returned and after what offset |
{- "nextPageToken": "string",
- "results": [
- {
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Permission for Example App",
- "description": "Permission for Example App to use personal data of participants.",
- "allowText": "I allow Example App to use all of my data. Example App will have full functionality.",
- "denyText": "I disallow Example App from using data. Example App will have limited functionality.",
- "grants": [
- {
- "granter": "participant",
- "grantee": "app",
- "condition": {
- "document.creator": {
- "$eq": "IPoxXkdvFsrqzDdU7h3QqSs"
}
}
}
], - "id": "P7kGbYvko5CSM6ixzpVUKnH",
- "appId": "APXf29TgTSMFeHGXY627vi5"
}
]
}
parcel.full
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
permissionId required | string (PermissionId) Example: P7kGbYvko5CSM6ixzpVUKnH The unique identifier of the permission. |
{- "grants": [
- {
- "id": "GSjAcmpmKPTfeCxrfbs4kSe",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "granter": "IPoxXkdvFsrqzDdU7h3QqSs",
- "condition": {
- "document.tags": {
- "$contains": "for-sharing"
}
}, - "capabilities": "read"
}
]
}
parcel.public
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
permissionId required | string (PermissionId) Example: P7kGbYvko5CSM6ixzpVUKnH The unique identifier of the permission. |
{- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Permission for Example App",
- "description": "Permission for Example App to use personal data of participants.",
- "allowText": "I allow Example App to use all of my data. Example App will have full functionality.",
- "denyText": "I disallow Example App from using data. Example App will have limited functionality.",
- "grants": [
- {
- "granter": "participant",
- "grantee": "app",
- "condition": {
- "document.creator": {
- "$eq": "IPoxXkdvFsrqzDdU7h3QqSs"
}
}
}
], - "id": "P7kGbYvko5CSM6ixzpVUKnH",
- "appId": "APXf29TgTSMFeHGXY627vi5"
}
parcel.full
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
permissionId required | string (PermissionId) Example: P7kGbYvko5CSM6ixzpVUKnH The unique identifier of the permission. |
{- "error": "string"
}
parcel.public
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
[- {
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Permission for Example App",
- "description": "Permission for Example App to use personal data of participants.",
- "allowText": "I allow Example App to use all of my data. Example App will have full functionality.",
- "denyText": "I disallow Example App from using data. Example App will have limited functionality.",
- "grants": [
- {
- "granter": "participant",
- "grantee": "app",
- "condition": {
- "document.creator": {
- "$eq": "IPoxXkdvFsrqzDdU7h3QqSs"
}
}
}
], - "id": "P7kGbYvko5CSM6ixzpVUKnH",
- "appId": "APXf29TgTSMFeHGXY627vi5"
}
]
parcel.full
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
required | Array of objects (GrantSpec) |
name required | string The name of this permission. |
description required | string The description of this permission seen by users when shown in an app. |
allowText required | string Text seen by users when accepting this permission. |
denyText required | string Text seen by users when denying this permission. |
{- "name": "Permission for Example App",
- "description": "Permission for Example App to use personal data of participants.",
- "allowText": "I allow Example App to use all of my data. Example App will have full functionality.",
- "denyText": "I disallow Example App from using data. Example App will have limited functionality.",
- "grants": [
- {
- "granter": "participant",
- "grantee": "app",
- "condition": {
- "document.creator": {
- "$eq": "IPoxXkdvFsrqzDdU7h3QqSs"
}
}
}
]
}
{- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Permission for Example App",
- "description": "Permission for Example App to use personal data of participants.",
- "allowText": "I allow Example App to use all of my data. Example App will have full functionality.",
- "denyText": "I disallow Example App from using data. Example App will have limited functionality.",
- "grants": [
- {
- "granter": "participant",
- "grantee": "app",
- "condition": {
- "document.creator": {
- "$eq": "IPoxXkdvFsrqzDdU7h3QqSs"
}
}
}
], - "id": "P7kGbYvko5CSM6ixzpVUKnH",
- "appId": "APXf29TgTSMFeHGXY627vi5"
}
parcel.public
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
permissionId required | string (PermissionId) Example: P7kGbYvko5CSM6ixzpVUKnH The unique identifier of the permission. |
{- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "Permission for Example App",
- "description": "Permission for Example App to use personal data of participants.",
- "allowText": "I allow Example App to use all of my data. Example App will have full functionality.",
- "denyText": "I disallow Example App from using data. Example App will have limited functionality.",
- "grants": [
- {
- "granter": "participant",
- "grantee": "app",
- "condition": {
- "document.creator": {
- "$eq": "IPoxXkdvFsrqzDdU7h3QqSs"
}
}
}
], - "id": "P7kGbYvko5CSM6ixzpVUKnH",
- "appId": "APXf29TgTSMFeHGXY627vi5"
}
parcel.full
) appId required | string (AppId) Example: APXf29TgTSMFeHGXY627vi5 The unique identifier of the app. |
permissionId required | string (PermissionId) Example: P7kGbYvko5CSM6ixzpVUKnH The unique identifier of the permission. |
{- "error": "string"
}
parcel.full
) (IdentityOrAppId (IdentityId (string) or AppId (string))) or string The ID of the identity to which the grant is made or everyone to make the grant to everyone. | |
condition | object (Condition) Grant condition, in the grant condition DSL. Some selectors are flagged as EXPERIMENTAL. Please feel free to report bugs with these features and/or request new ones via our feedback form. Condition DSLSelectors
Logical Operators (LogicalOp)
Relational Operators (RelationalOp)For operators with literal parameters, the literal must have the same type as the selector.
Array Operators (ArrayOp)
Set Operators (SetOp)
|
capabilities | string (Capabilities) Default: "read" The capabilities that are afforded to the grantee. Capabilities are comparable to AccessToken scopes, but are tailored to delegation rather than impersonation. Capabilities are specified as space-separated identifiers chosen from the following:
|
delegating | string The grant to extend by delegation. If the specified grant is The More specifically, the |
{- "grantee": "IPoxXkdvFsrqzDdU7h3QqSs",
- "condition": {
- "document.tags": {
- "$contains": "for-sharing"
}
}, - "capabilities": "read delegate",
- "delegating": "GSjAcmpmKPTfeCxrfbs4kSe"
}
{- "createdAt": "2020-12-09T09:51:41.000Z",
- "grantee": "IPoxXkdvFsrqzDdU7h3QqSs",
- "condition": {
- "document.tags": {
- "$contains": "for-sharing"
}
}, - "capabilities": "read delegate",
- "delegating": "undefined",
- "id": "GSjAcmpmKPTfeCxrfbs4kSe",
- "granter": "IPoxXkdvFsrqzDdU7h3QqSs",
- "permission": "P7kGbYvko5CSM6ixzpVUKnH"
}
Return grants that match the (optional) filter.
parcel.public
) object The filter to apply, if any. Set fields are ANDed together. | |
object Controls the number of results returned and after what offset |
{- "nextPageToken": "string",
- "results": [
- {
- "createdAt": "2020-12-09T09:51:41.000Z",
- "grantee": "IPoxXkdvFsrqzDdU7h3QqSs",
- "condition": {
- "document.tags": {
- "$contains": "for-sharing"
}
}, - "capabilities": "read delegate",
- "delegating": "undefined",
- "id": "GSjAcmpmKPTfeCxrfbs4kSe",
- "granter": "IPoxXkdvFsrqzDdU7h3QqSs",
- "permission": "P7kGbYvko5CSM6ixzpVUKnH"
}
]
}
parcel.public
) grantId required | string (GrantId) Example: GSjAcmpmKPTfeCxrfbs4kSe The unique identifier of the grant. |
{- "createdAt": "2020-12-09T09:51:41.000Z",
- "grantee": "IPoxXkdvFsrqzDdU7h3QqSs",
- "condition": {
- "document.tags": {
- "$contains": "for-sharing"
}
}, - "capabilities": "read delegate",
- "delegating": "undefined",
- "id": "GSjAcmpmKPTfeCxrfbs4kSe",
- "granter": "IPoxXkdvFsrqzDdU7h3QqSs",
- "permission": "P7kGbYvko5CSM6ixzpVUKnH"
}
parcel.full
) grantId required | string (GrantId) Example: GSjAcmpmKPTfeCxrfbs4kSe The unique identifier of the grant. |
{- "error": "string"
}
parcel.safe
) The job to equeue.
name required | string A human-readable name for the job. Intended to help with monitoring and debugging. The name SHOULD be unique among jobs submitted by the same user. |
cmd required | Array of strings The command-line arguments to the command that should be run to start the job. This corresponds to |
image required | string The name of the docker image to use, optionally prefixed with an image repository hostname. See docker pull documentation for a full description of allowable formats. |
object Environment variables to use when running the image. Setting | |
object The set of rules that define how a job is allowed to communicate with various network entities. All network traffic that is not explicitly whitelisted here will be blocked. | |
Array of objects | |
Array of objects | |
cpus | number The (fractional) number of cpus requested to run the job. This is clamped by a per-worker maximum. 0 will default to the worker-allowed maximum. |
memory | string The amount of memory requested to run the job. This is clamped by a per-worker maximum.
Format: |
{- "name": "CreditScorePrediction.p30.filtered",
- "cmd": [
- "--model",
- "/work/model.h5",
- "--input",
- "/parcel/data/in/credit_data.csv",
- "--output",
- "/parcel/data/out/predictions.csv"
], - "image": "tensorflow:2.3.0",
- "env": {
- "MY_SECRET_TOKEN": "4jfShsd%12s",
- "DEBUG_LEVEL": "silent"
}, - "networkPolicy": {
- "egress": [
- {
- "cidr": "192.168.1.1/24"
}, - {
- "cidr": "2001:db9::/64"
}
]
}, - "inputDocuments": [
- {
- "mountPath": "/parcel/data/in/credit_data.csv",
- "id": "DSgUhs1oiQ8vr5pQH8pgfgs"
}
], - "outputDocuments": [
- {
- "mountPath": "/parcel/data/out/predictions.csv",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs"
}
], - "cpus": 0.5,
- "memory": "2G"
}
{- "createdAt": "2020-12-09T09:51:41.000Z",
- "id": "J8dqyKxRYXZSqZyFjcM8Suz",
- "spec": {
- "name": "CreditScorePrediction.p30.filtered",
- "cmd": [
- "--model",
- "/work/model.h5",
- "--input",
- "/parcel/data/in/credit_data.csv",
- "--output",
- "/parcel/data/out/predictions.csv"
], - "image": "tensorflow:2.3.0",
- "env": {
- "MY_SECRET_TOKEN": "4jfShsd%12s",
- "DEBUG_LEVEL": "silent"
}, - "networkPolicy": {
- "egress": [
- {
- "cidr": "192.168.1.1/24"
}, - {
- "cidr": "2001:db9::/64"
}
]
}, - "inputDocuments": [
- {
- "mountPath": "/parcel/data/in/credit_data.csv",
- "id": "DSgUhs1oiQ8vr5pQH8pgfgs"
}
], - "outputDocuments": [
- {
- "mountPath": "/parcel/data/out/predictions.csv",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs"
}
], - "cpus": 0.5,
- "memory": "2G"
}, - "io": {
- "accessedDocuments": [
- "DSgUhs1oiQ8vr5pQH8pgfgs"
], - "outputDocuments": [
- {
- "mountPath": "/parcel/data/out/predictions.csv",
- "owner": "DSgUhs1oiQ8vr5pQH8pgfgs"
}
]
}, - "status": {
- "phase": "Pending",
- "message": "string",
- "host": "string"
}
}
Return all known jobs visible to the current user and matching the (optional) filter. Includes completed, pending, and in-progress jobs.
parcel.public
) object The filter to apply, if any. | |
object Controls the number of results returned and after what offset |
{- "nextPageToken": "string",
- "results": [
- {
- "createdAt": "2020-12-09T09:51:41.000Z",
- "id": "J8dqyKxRYXZSqZyFjcM8Suz",
- "spec": {
- "name": "CreditScorePrediction.p30.filtered",
- "cmd": [
- "--model",
- "/work/model.h5",
- "--input",
- "/parcel/data/in/credit_data.csv",
- "--output",
- "/parcel/data/out/predictions.csv"
], - "image": "tensorflow:2.3.0",
- "env": {
- "MY_SECRET_TOKEN": "4jfShsd%12s",
- "DEBUG_LEVEL": "silent"
}, - "networkPolicy": {
- "egress": [
- {
- "cidr": "192.168.1.1/24"
}, - {
- "cidr": "2001:db9::/64"
}
]
}, - "inputDocuments": [
- {
- "mountPath": "/parcel/data/in/credit_data.csv",
- "id": "DSgUhs1oiQ8vr5pQH8pgfgs"
}
], - "outputDocuments": [
- {
- "mountPath": "/parcel/data/out/predictions.csv",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs"
}
], - "cpus": 0.5,
- "memory": "2G"
}, - "io": {
- "accessedDocuments": [
- "DSgUhs1oiQ8vr5pQH8pgfgs"
], - "outputDocuments": [
- {
- "mountPath": "/parcel/data/out/predictions.csv",
- "owner": "DSgUhs1oiQ8vr5pQH8pgfgs"
}
]
}, - "status": {
- "phase": "Pending",
- "message": "string",
- "host": "string"
}
}
]
}
parcel.public
) jobId required | string (JobId) Example: J8dqyKxRYXZSqZyFjcM8Suz The unique identifier of the job. |
{- "createdAt": "2020-12-09T09:51:41.000Z",
- "id": "J8dqyKxRYXZSqZyFjcM8Suz",
- "spec": {
- "name": "CreditScorePrediction.p30.filtered",
- "cmd": [
- "--model",
- "/work/model.h5",
- "--input",
- "/parcel/data/in/credit_data.csv",
- "--output",
- "/parcel/data/out/predictions.csv"
], - "image": "tensorflow:2.3.0",
- "env": {
- "MY_SECRET_TOKEN": "4jfShsd%12s",
- "DEBUG_LEVEL": "silent"
}, - "networkPolicy": {
- "egress": [
- {
- "cidr": "192.168.1.1/24"
}, - {
- "cidr": "2001:db9::/64"
}
]
}, - "inputDocuments": [
- {
- "mountPath": "/parcel/data/in/credit_data.csv",
- "id": "DSgUhs1oiQ8vr5pQH8pgfgs"
}
], - "outputDocuments": [
- {
- "mountPath": "/parcel/data/out/predictions.csv",
- "owner": "IPoxXkdvFsrqzDdU7h3QqSs"
}
], - "cpus": 0.5,
- "memory": "2G"
}, - "io": {
- "accessedDocuments": [
- "DSgUhs1oiQ8vr5pQH8pgfgs"
], - "outputDocuments": [
- {
- "mountPath": "/parcel/data/out/predictions.csv",
- "owner": "DSgUhs1oiQ8vr5pQH8pgfgs"
}
]
}, - "status": {
- "phase": "Pending",
- "message": "string",
- "host": "string"
}
}
parcel.safe
) jobId required | string (JobId) Example: J8dqyKxRYXZSqZyFjcM8Suz The unique identifier of the job. |
{- "error": "string"
}
In contrast to the more full-fledged /compute/jobs/{job_id}
endpoint, this endpoint
parcel.public
) jobId required | string (JobId) Example: J8dqyKxRYXZSqZyFjcM8Suz The unique identifier of the job. |
{- "id": "J8dqyKxRYXZSqZyFjcM8Suz",
- "status": {
- "phase": "Pending",
- "message": "string"
}
}
parcel.public
) object The filter to apply, if any. Set fields are ANDed together. |
{- "createCount": 0,
- "readCount": 0,
- "writeCount": 0,
- "deleteCount": 0,
- "uploadCount": 0,
- "downloadCount": 0,
- "uploadSizeBytes": 0,
- "downloadSizeBytes": 0,
- "computeMsec": 0,
- "computeCpuMsec": 0,
- "computeMemoryMsec": 0
}
{- "apiCallsLimit": 0,
- "accessedBytesLimit": 0,
- "computeMsecLimit": 0
}
parcel.public
) The new quota for this month, and all subsequent months until changed.
apiCallsLimit | number The monthly limit on your number of Parcel API calls made. By default this is set to 10,000. |
accessedBytesLimit | number The monthly limit on your total number of Parcel data bytes accessed, from both document upload and download operations. By default, this is set to 100GB. |
computeMsecLimit | number The monthly limit on your total number of Parcel compute time utilized. By default this is set to 100,000 seconds. |
{- "apiCallsLimit": 0,
- "accessedBytesLimit": 0,
- "computeMsecLimit": 0
}
{- "apiCallsLimit": 0,
- "accessedBytesLimit": 0,
- "computeMsecLimit": 0
}
parcel.safe
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
object Controls the number of results returned and after what offset |
{- "nextPageToken": "string",
- "results": [
- {
- "address": "0x16355dda54b8421f8e173d12b96371a36f76d633"
}
]
}
parcel.full
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
Proof of ownership of the Ethereum account.
proof required | string <hex> An hex-encoded signature of the string
|
{- "proof": "0x0b712114734b34fc51a16d32e22f428a28caffdf0c608e42ff16bed204a6b728666077fc966147f4e533e68452341da2e6d064f1a9410456d35476759d0f62f61b"
}
{- "address": "0x16355dda54b8421f8e173d12b96371a36f76d633"
}
parcel.full
) identityId required | string (IdentityId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of the identity. |
ethereumAddress required | string <hex> Example: 0x16355dda54b8421f8e173d12b96371a36f76d633 An Ethereum address representing a linked identity. |
{- "error": "string"
}
parcel.public
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
object Controls the number of results returned and after what offset |
{- "nextPageToken": "string",
- "results": [
- {
- "token": "TVehZvHzZ2ADnjZx1qoLrTq",
- "balance": 0
}
]
}
parcel.public
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
tokenId required | string (TokenId) Example: TVehZvHzZ2ADnjZx1qoLrTq The unique identifier of the Parcel data-backed token. |
object Controls the number of results returned and after what offset |
{- "token": "TVehZvHzZ2ADnjZx1qoLrTq",
- "balance": 0
}
An alias for POST /tokens/{tokenId}/transfers
.
parcel.full
) required | IdentityId (string) or AppId (string) (IdentityOrAppId) Example: IPoxXkdvFsrqzDdU7h3QqSs The unique identifier of an identity or app. |
tokenId required | string (TokenId) Example: TVehZvHzZ2ADnjZx1qoLrTq The unique identifier of the Parcel data-backed token. |
required | Array of objects (IdentityTokenVerifier) |
{- "id": "IPoxXkdvFsrqzDdU7h3QqSs",
- "createdAt": "2020-12-09T09:51:41.000Z",
- "tokenVerifiers": [
- {
- "sub": "IPoxXkdvFsrqzDdU7h3QqSs",
- "iss": "auth.oasislabs.com",
- "publicKey": {
- "kty": "EC",
- "crv": "P-256",
- "alg": "ES256",
- "use": "sig",
- "kid": "XKKNCsR7lzEQFc_nDHWMSaT4CrEhMK37JEI-p3s9AKI",
- "x": "1E96MvbMhsqxjhbfgQfGMNSimvIDklR3hguWn6-wrp4",
- "y": "X5qZ-aJjsCeFz-rv61LtfV24W7QDE41RVxUtSRpa03c"
}
}
]
}
{- "error": "string"
}
parcel.safe
) name | string The optional display name of the token. |
required | object The parameters of the grant made to holders of the token on the underlying assets. |
consumesAssets | boolean Default: false If set to This field's claim is vacuous if the data is not irreplaceable, as the data owner can re-upload the data and make a new token. Of course, it's a new token. |
required | ParcelTransferability (object) or RemoteTransferability (object) |
{- "name": "string",
- "grant": {
- "condition": {
- "document.tags": {
- "$contains": "for-sharing"
}
}, - "capabilities": "read delegate"
}, - "consumesAssets": false,
- "transferability": {
- "parcel": {
- "supply": 42
}
}
}
{- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "string",
- "grant": {
- "condition": {
- "document.tags": {
- "$contains": "for-sharing"
}
}, - "capabilities": "read delegate"
}, - "consumesAssets": false,
- "transferability": {
- "parcel": {
- "supply": 42
}
}, - "id": "TVehZvHzZ2ADnjZx1qoLrTq"
}
parcel.public
) tokenId required | string (TokenId) Example: TVehZvHzZ2ADnjZx1qoLrTq The unique identifier of the Parcel data-backed token. |
{- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "string",
- "grant": {
- "condition": {
- "document.tags": {
- "$contains": "for-sharing"
}
}, - "capabilities": "read delegate"
}, - "consumesAssets": false,
- "transferability": {
- "parcel": {
- "supply": 42
}
}, - "id": "TVehZvHzZ2ADnjZx1qoLrTq"
}
Delists the token for which the caller holds all supply. If a backing asset is no longer part of any token, it will again be transferrable from the escrow identity by the original owner.
parcel.full
) tokenId required | string (TokenId) Example: TVehZvHzZ2ADnjZx1qoLrTq The unique identifier of the Parcel data-backed token. |
{- "error": "string"
}
parcel.public
) tokenId required | string (TokenId) Example: TVehZvHzZ2ADnjZx1qoLrTq The unique identifier of the Parcel data-backed token. |
object Controls the number of results returned and after what offset |
{- "nextPageToken": "string",
- "results": [
- {
- "id": "DSgUhs1oiQ8vr5pQH8pgfgs",
- "type": "document",
- "claimant": "IPoxXkdvFsrqzDdU7h3QqSs"
}
]
}
Adds an asset to the token. The asset must be owned by the escrow identity and be tokenizable by the caller.
If this token consumes its assets, this asset cannot be tokenized again.
parcel.safe
) tokenId required | string (TokenId) Example: TVehZvHzZ2ADnjZx1qoLrTq The unique identifier of the Parcel data-backed token. |
required | DocumentId (string) or DatabaseId (string) (AssetId) Example: DNa4FTGpmYjHeEfqihq6o5y The unique identifier of a data asset. |
{- "asset": "DSgUhs1oiQ8vr5pQH8pgfgs",
- "token": "TVehZvHzZ2ADnjZx1qoLrTq",
- "consumed": true
}
Removes an asset from a token for which the caller holds all supply. If no other tokens hold this asset, the original owner will again be able to retrieve the it from the escrow identity.
parcel.full
) tokenId required | string (TokenId) Example: TVehZvHzZ2ADnjZx1qoLrTq The unique identifier of the Parcel data-backed token. |
required | DocumentId (string) or DatabaseId (string) (AssetId) Example: DNa4FTGpmYjHeEfqihq6o5y The unique identifier of a data asset. |
{- "error": "string"
}
parcel.public
) tokenId required | string (TokenId) Example: TVehZvHzZ2ADnjZx1qoLrTq The unique identifier of the Parcel data-backed token. |
object The filter to apply, if any. | |
object Controls the number of results returned and after what offset |
{- "nextPageToken": "string",
- "results": [
- {
- "createdAt": "2020-12-09T09:51:41.000Z",
- "id": "RWnbsy4fS6UknkBkBYYEUoB",
- "token": "TVehZvHzZ2ADnjZx1qoLrTq",
- "sender": "IPoxXkdvFsrqzDdU7h3QqSs",
- "recipient": "IPoxXkdvFsrqzDdU7h3QqSs",
- "amount": 0,
- "bridgeTransactionId": "string"
}
]
}
Transfers some tokens from the caller to the recipient. Tokens can only be transferred using this method if the token is not already bridged to another network. If the token has been bridged, transfer the bridged token on the other network instead.
parcel.full
) tokenId required | string (TokenId) Example: TVehZvHzZ2ADnjZx1qoLrTq The unique identifier of the Parcel data-backed token. |
required | IdentityId (string) or AppId (string) or EscrowAccount (string) The recipient of the tokens. Sending to the escrow identity makes the tokens inaccessible (c.f. burning). |
amount required | integer <int64> >= 0 |
{- "recipient": "IPoxXkdvFsrqzDdU7h3QqSs",
- "amount": 1
}
{- "createdAt": "2020-12-09T09:51:41.000Z",
- "id": "RWnbsy4fS6UknkBkBYYEUoB",
- "token": "TVehZvHzZ2ADnjZx1qoLrTq",
- "sender": "IPoxXkdvFsrqzDdU7h3QqSs",
- "recipient": "IPoxXkdvFsrqzDdU7h3QqSs",
- "amount": 0,
- "bridgeTransactionId": "string"
}
parcel.public
) tokenId required | string (TokenId) Example: TVehZvHzZ2ADnjZx1qoLrTq The unique identifier of the Parcel data-backed token. |
transferReceiptId required | string (TransferReceiptId) Example: RWnbsy4fS6UknkBkBYYEUoB The unique identifier of a token transfer. |
{- "createdAt": "2020-12-09T09:51:41.000Z",
- "id": "RWnbsy4fS6UknkBkBYYEUoB",
- "token": "TVehZvHzZ2ADnjZx1qoLrTq",
- "sender": "IPoxXkdvFsrqzDdU7h3QqSs",
- "recipient": "IPoxXkdvFsrqzDdU7h3QqSs",
- "amount": 0,
- "bridgeTransactionId": "string"
}
parcel.public
) transferReceiptId required | string (TransferReceiptId) Example: RWnbsy4fS6UknkBkBYYEUoB The unique identifier of a token transfer. |
{- "createdAt": "2020-12-09T09:51:41.000Z",
- "id": "RWnbsy4fS6UknkBkBYYEUoB",
- "token": "TVehZvHzZ2ADnjZx1qoLrTq",
- "sender": "IPoxXkdvFsrqzDdU7h3QqSs",
- "recipient": "IPoxXkdvFsrqzDdU7h3QqSs",
- "amount": 0,
- "bridgeTransactionId": "string"
}
Return information about data tokens that match the (optional) filter.
parcel.public
) object Controls the number of results returned and after what offset |
IdentityId (string) or AppId (string) or EscrowAccount (string) Search for tokens held by the provided identity. | |
object Search for tokens backed by documents matching the provided search parameters. |
{- "heldBy": "IPoxXkdvFsrqzDdU7h3QqSs",
- "containsAsset": {
- "selectedByCondition": {
- "document.owner": {
- "$ne": "IPoxXkdvFsrqzDdU7h3QqSs"
}
}, - "accessibleInContext": {
- "accessor": "ITupSpS6DN1FE9DV8fKLHQi"
}
}
}
{- "nextPageToken": "string",
- "results": [
- {
- "createdAt": "2020-12-09T09:51:41.000Z",
- "name": "string",
- "grant": {
- "condition": {
- "document.tags": {
- "$contains": "for-sharing"
}
}, - "capabilities": "read delegate"
}, - "consumesAssets": false,
- "transferability": {
- "parcel": {
- "supply": 42
}
}, - "id": "TVehZvHzZ2ADnjZx1qoLrTq"
}
]
}
Return information about assets held by the escrow identity that match the (optional) filter.
parcel.public
) object Controls the number of results returned and after what offset |
selectedByCondition | object Search for documents that would be selected if a grant with the specified condition were created. Use this field for simulating a grant. If |
object Search for documents that can be accessed in the provided context. This field allows you to discover documents that you can access either yourself, or from a job. | |
token | string Search for assets present in this token. |
{- "selectedByCondition": {
- "document.owner": {
- "$ne": "IPoxXkdvFsrqzDdU7h3QqSs"
}
}, - "accessibleInContext": {
- "accessor": "ITupSpS6DN1FE9DV8fKLHQi"
}
}
{- "nextPageToken": "string",
- "results": [
- {
- "id": "DSgUhs1oiQ8vr5pQH8pgfgs",
- "type": "document",
- "claimant": "IPoxXkdvFsrqzDdU7h3QqSs"
}
]
}
Returns information about a a data asset held by the escrow identity.
parcel.public
) required | DocumentId (string) or DatabaseId (string) (AssetId) Example: DNa4FTGpmYjHeEfqihq6o5y The unique identifier of a data asset. |
{- "id": "DSgUhs1oiQ8vr5pQH8pgfgs",
- "type": "document",
- "claimant": "IPoxXkdvFsrqzDdU7h3QqSs"
}