Skip to content

Generate code sample

About

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

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

For more information see swagger documentation

Headers

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

Response

  • 200 - Code sample zip returned.
  • 400 - Validation failed. Response schema: Error
  • 401 - Authorization failed. Response schema: Error
  • 404 - Account with specified id not found. Response schema: Error

Examples

Example request:

curl -X GET --header 'Accept: application/zip' --header 'auth-token: token'
'https://mt-provisioning-api-v1.agiliumtrade.agiliumtrade.ai/users/current/accounts/1eda642a-a9a3-457c-99af-3bc5e8d5c4c9/examples/python'