Autoproof docs
  • Legal
    • How to get protected
    • For freelancers
      • 🐇 Protect digital assets
      • Transfer
    • For clients
    • Why it works - legal
    • Terms of use
    • Privacy policy
  • Telegram Mini Apps API
    • Users
    • Wallets
    • Secure docs on upload
    • Upload assignment
  • TON Smart contracts
    • Explore on GitHub
  • Applications
    • Open Mini App
    • Join the Community
Powered by GitBook
On this page
  1. Telegram Mini Apps API

Upload assignment

PreviousSecure docs on upload

Last updated 6 months ago

Create a new certificate and assignment document for transferring exclusive rights:

POST /api/v1/upload-assignment

Get <token> from the API Keys tab in the dashboard:

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

description

string

Description of the work, ex. "Selfies from John Snow"

person_fullname

string

Full name of the author

person_address

string

Postal address of the author

project

string

ex. Selfies

mode

string

"live" or "test"

data

HashedFile[]

array of hashed files

HashedFile type:

Name
Type
Description

filename

string

Original name of file

hash

string

Starts with the algorithm name, ex,.

Request example:

{
    "description": "Persons selfies",
    "person_fullname": "Ilia Polotsky",
    "person_address": "Tbilisi, Merab Kostava 22",
    "project": "Selfies",
    "mode": "live",
    "data": [
        {"filename": "selfie_2024_06_18.jpg", "hash": "keccak256:5f7b018b3f688b3a0aa493e7a5786782231239c7884f68b42162f06b9d7f1c15"},
        {"filename": "selfie_2010_03_11.jpg", "hash": "keccak256:4faee85b775561242eacc7f6261b9637bbfc7e27b63dd0388a348ab3eac6f21d"},
        {"filename": "selfie_2010_08_21.jpg", "hash": "keccak256:e8f0939719ddef1fdaf831062e1df532ca99b12d197dff53c3a5b97b780e47ef"},
        {"filename": "selfie_2019_01_24.jpg", "hash": "keccak256:8640b78b670449539712daa1d71f3c2b0c895d8a5d015999c2e1f357e24054f0"},
        {"filename": "selfie_2011_01_19.jpg", "hash": "keccak256:5004bd239d050fef2ef1d4aaeef731e0e3e2af7856c5420c9f2b442340500cbb"},
        {"filename": "selfie_2012_06_06.jpg", "hash": "keccak256:bbde41fb1bc168514c90f2153554ed04db9b57494a0c00d2359dbf17b729a138"},
        {"filename": "selfie_2014_10_12.jpg", "hash": "keccak256:9ec23ff7d49d54180fa20a24d8eb41dcfe18c9897e3b179b00f10e0af1e7395d"},
        {"filename": "selfie_2016_08_30.jpg", "hash": "keccak256:a99c7cb63b63e51249d1225fcf02d6c700f92db29910a53a3249292a0d365450"},
        {"filename": "selfie_2013_11_20.jpg", "hash": "keccak256:57378c6b9492a6e66dbbf15ca4fc848589c73a4c3a8e2dc3787b92f3eab8af41"},
        {"filename": "selfie_2012_09_17.jpg", "hash": "keccak256:6f149e23ff0af0c0103fc79343292b5b45ccf610fc16f6497d8fb1a7d4de4906"},
        {"filename": "selfie_2020_05_04.jpg", "hash": "keccak256:eebae7f75852bbd0ad7fca15705b108b198f4db40c3cde0f45624b314c3b54fa"},
        {"filename": "selfie_2014_12_22.jpg", "hash": "keccak256:e94a00905c67130bba95b715e999f46da9d5c946b7f35d8224b68541f8836f92"},
        {"filename": "selfie_2023_10_10.jpg", "hash": "keccak256:3b08d097bdc2efba278f8cf81294f1ffcc7f5fa1d10bc68346ce82fe5fa68104"},
        {"filename": "selfie_2015_04_11.jpg", "hash": "keccak256:f17283f8e88e12bfb50869b74d3e8b66b95d83632f8837c2af30f9b44c9eb565"},
        {"filename": "selfie_2016_12_28.jpg", "hash": "keccak256:0d7c5ba2d155f9e1fbfd9d36f49a6fcebcf5b13d6a76bb420bdd1e169dbeef53"},
        {"filename": "selfie_2010_07_25.jpg", "hash": "keccak256:f06c73e8e48d8c9efea55cc5da5b5b04534438fb490d567cf8964a8b62d9ff5b"},
        {"filename": "selfie_2012_03_08.jpg", "hash": "keccak256:a5d4f1d7fa3146a673307b06fc769d629905489bb5413b34d78965d1448d22a7"},
        {"filename": "selfie_2017_02_21.jpg", "hash": "keccak256:84e99379dc99b9177d7c9467e4e05eeb7db52ae12f8301787356f1329aa79243"},
        {"filename": "selfie_2021_11_11.jpg", "hash": "keccak256:ddcd3f2cb339942cf3f540cbaaba9c693b6a6c0b417403d77444e94f116b93c4"},
        {"filename": "selfie_2019_09_05.jpg", "hash": "keccak256:1b781e69df7d5294da433e1c5fc327b702b5ac113d6228a15513d2cbb80b1b65"},
        {"filename": "selfie_2021_06_03.jpg", "hash": "keccak256:60ab8dfdc189d1c640054a4504f2b889b60c108d6e0f7767a3210f20b7c9b0b1"},
        {"filename": "selfie_2015_05_27.jpg", "hash": "keccak256:f2cb01441d8ddcceac1706be1d0835a7f39fb9b6f6d61b11a413bd03d83244e3"},
        {"filename": "selfie_2016_10_22.jpg", "hash": "keccak256:b9a3c963b7b05704b4a734408e8b254f41034a42d05db50f4d453600292b6508"},
        {"filename": "selfie_2017_09_12.jpg", "hash": "keccak256:2dd32a0ff5f034b5d2c1392847a9cf888589ae5ae92dbb52be4726634b3c7fb8"},
        {"filename": "selfie_2013_03_15.jpg", "hash": "keccak256:13b9cb5392c29f15f22698992ab63cf6ff0fe4ae1b4e2cd493cc36b1bfc10e14"},
        {"filename": "selfie_2018_08_19.jpg", "hash": "keccak256:b4f5ddcba24fc8d9c408c830503c0d71ebf9eae58b1c9dc33e5c8c4e9210dc0d"},
        {"filename": "selfie_2020_03_09.jpg", "hash": "keccak256:53776180f96bff5bc1eb7abf604b3dbeb24cc2b60730a8396fd4749d0d01ba42"},
        {"filename": "selfie_2019_10_15.jpg", "hash": "keccak256:2a09b2ec9b65e0b2b10c320e04e3cba3123a13da7a86e5269d994189267ccacc"},
        {"filename": "selfie_2022_02_06.jpg", "hash": "keccak256:9b13255ef3071b91e92087d9ba48e7ed14f9c350f1f9fe42afc76c4048184f46"},
        {"filename": "selfie_2018_04_03.jpg", "hash": "keccak256:83d11ed99f8f2c2e899fa4d5b5dc26ff99dc7cc9bb5b1a6cf89f1c4246b1fa78"},
        {"filename": "selfie_2011_02_27.jpg", "hash": "keccak256:5871cc75a36fb2cc787c5e69c67d7afac916a453a0196af0e44c53a110f5b2e8"}
    ]
}

Response

{
    "result": true,
    "message": "Certification started Snapshot object (ba14e390-4fe1-458d-99d8-0d2ee7d1c11c). You can monitor a status on project page: https://test.autoproof.dev/project/99b2d0fc-6b77-4c99-be47-997508894b07",
    "snapshot_id": "ba14e390-4fe1-458d-99d8-0d2ee7d1c11c"
}
{
    "result": false,
    "message": "Request is not valid. {'person_fullname': [ErrorDetail(string='This field is required.', code='required')]}"
}
keccak256:5f7b018b3f688b3a0aa493e7a5786782231239c7884f68b42162f06b9d7f1c15