Skip to content

Generate code sample


Generates code sample for account replica. Returns a zip file with example.

GET /users/current/accounts/:accountId/examples/:platform

For more information see swagger documentation


Name Type Required Description
auth-token string Yes Authorization token. See Authentication and authorization

Path parameters

Name Type Required Description
accountId string Yes Id of the account for which code sample will be generated
platform string Yes Platform for which code will be generated, enum: node, python, browser


  • 200 - Code sample zip returned.
  • 400 - Validation failed. Response schema: Error
  • 401 - Authorization failed. Response schema: Error
  • 403 - Method or resource access permissions are missing. Response schema: Error
  • 404 - Account with specified id not found. Response schema: Error


Example request:

curl -X GET --header 'Accept: application/zip' --header 'auth-token: token'