Skip to content

Normal mode of Smartlink generation

Generated files can be stored locally (./data/out/ folder) or on AWS S3.

Smartlink Creator generates smartlinks on the fly. Once generated, a smartlink provided from the storage.

In case of AWS S3, all the setting should be provided in environment variables ( e.g. in ./.env file):

AWS_ACCESS_KEY_ID=<access key>
AWS_SECRET_ACCESS_KEY=<secret key>
AWS_BUCKET=<bucket name>

Normally Smartlink creator works with predefined set of configurations (environments), but all the needed parameters can be also passed directly to creation call. E.g:

curl --location --request POST 'https://sl.argoflow.io/api/sl/generate' \
--form 'id="60fadefab3386d00126f2cb8"' \
--form 'docBaseUrl="https://api.argoflow.io/smartlinks"' \
--form 'auth="Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1ZWYyMDE0ZmRjMWMwYzAwMDY3ZGNlZmMiLCJpYXQiOjE2MjczMDQzNzkuMjAyLCJleHAiOjE2Mjc5MDkxNzkuMjAyLCJmaXJzdE5hbWUiOiJZdXJpeSIsImxhc3ROYW1lIjoiWmlua292ZXRzIiwiaXNBZG1pbiI6dHJ1ZSwiaXNTdXBlckFkbWluIjp0cnVlLCJpc09yZ2FuaXphdGlvbk93bmVyIjpmYWxzZSwibGFuZ3VhZ2VJZCI6Miwib3JnYW5pemF0aW9uSWQiOiI1ZWYyMDBkMWRjMWMwYzAwMDY3ZGNlZmEifQ.EPg7-J_NMF5UqU2r-gTy_rrpphLnjjOQHfIQvBIJBmE"' \
--form 'trackUrl="https://track.argoflow.io"' --form 'homeUrl="https://ui.argoflow.io"'