Skip to main content

REST API

Our API is an HTTPS REST API.

API endpoint is https://api.attarius.com/v1

Auth

For authorization grab apiKey from dev panel and add it to the header "x-api-key"

await axios({
method: "GET"
url: "https://api.attarius.com/v1"
headers: {
'x-api-key': apiKey
}
})
caution

All requests should be done with authorization

Projects

Method: GET

Endpoint: https://api.attarius.com/v1

Files

Get List

Method: GET

Endpoint: https://api.attarius.com/v1/file

Query:

  • page - page to grab. Options
  • limit - limit to return. Options
  • storageSlug - slug of the storage to filter. Options

Upload File

Method: POST

Endpoint: https://api.attarius.com/v1/file

ContentType: "mutlipart/formdata"

Body:

  • file - file itself. Required
  • fileName - file name to save. Optional. Default - generated one
  • storageSlug - storage to upload. Optional. Default - default storage

Blockchain

Get Networks

Method: GET

Endpoint: https://api.attarius.com/v1/blockchain/allNetworks

AuthChallenge

Get Challenges

Method: GET

Endpoint: https://api.attarius.com/v1/authChallenge

Query:

  • page - page to grab. Options
  • limit - limit to return. Options

Get Challenge By Id

Method: GET

Endpoint: https://api.attarius.com/v1/authChallenge/${challengeId}

Create Challenge

Method: POST

Endpoint: https://api.attarius.com/v1/authChallenge

ContentType: "application/json"

Body:

  • userExternalId - user external id.
  • networks - array of keys in CAIP-2 format.