swarm-backend (1.0.1)

Download OpenAPI specification:Download

Swarm’s Onboarding API is a simple RESTful API working with JSON payloads. It expects parameters to be passed in valid JSON (except when stated otherwise) with the Content-Type: application/json header being set.

Initiate a new onboarding

To initiate a new onboarding request for your user, you will need to pass the user’s wallet address (for issuing the NFT permission token) and the source key provided to you to the Standard Onboarding endpoint. This will return an access token to your application which you can use to launch Onboarding SDK, allowing users to submit their information and documents.

Submit Source of Funds information

Collect your user’s Source of Funds information via a form, and submit to the Source of Funds API endpoint. If all the information is correct it will automatically be sent for verification and the endpoint will respond with a successful submission status.

Getting verification status

Once a user has submitted their documentation for KYC verification or Source of Funds, you can check the status of their application using the same Standard Onboarding endpoint as for initiating the onboarding.

Resubmitting incomplete information / documents

Should the KYC documents provided by the user be incomplete or not meet our regulatory requirements, the user will receive an email with a link to resubmit the missing or incomplete information. Your app will receive an access token to allow the user to continue their KYC session. For the Source of Funds verification, if the provided information is incomplete, the endpoint will return a status of in_progress_user and the user will receive an email. In this case, present the user with the Source of Funds form in your application once again, such that they can resubmit their information.

Authentication

BearerAuth

Security Scheme Type HTTP
HTTP Authorization Scheme bearer
Bearer format "JWT"

External Onboarding

Standard Onboarding (KYC+SoF)

Authorizations:
query Parameters
address
required
string

address of the user being onboarded

source_key
required
any

source key unique to the external party and assigned by swarm

Responses

200

Success

400

Bad Request

500

Internal Server Error

get /onboarding/external

Swarm Trade Backend

https://api.app.swarm.com/onboarding/external

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    {
    }
}

Submit external Source of Funds information

Authorizations:
Request Body schema: application/json
data
required
object (SoFExternalVerificationForm)

Responses

204

Created

401

Unauthorized

403

Forbidden

409

Conflict

500

Internal Server Error

post /sof/verifications/external

Swarm Trade Backend

https://api.app.swarm.com/sof/verifications/external

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    {
    }
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "errors":
    [
    ]
}