Tray Io

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

Recipes

Vol. 5 : Connecting from tray.io

© 2023 Coherent, All rights reserved.


Step 1
Log in to tray.io...
Head over to https://tray.io/
Log in or sign up for a new account.
...then head over to the Connectors area.

Hit the New Connector


button to get started!

© 2023 Coherent, All rights reserved.


Step 2
Start your Connector...
Fill in the Name and Description to match
your API and get your Base URL from the
Endpoint URL in Spark.

(Leave off the word Execute!)

Click Next...

and then Connect to a new API.

© 2023 Coherent, All rights reserved.


Step 3
New API connection...

We're going to leave this set to "None". This


doesn't mean your endpoint is unsecured, we
Complete the New just handle it a different way.
API connection form
and select a logo for
your new
connection.

Then click Next


Authorization type.

© 2023 Coherent, All rights reserved.


Step 4
New Operation...
Select the Operations tab and click on
Create new operation.

Another Name and Description, this time for


the specific API, and hit Submit.

(It's important to name it accurately if you have


subservices!)

© 2023 Coherent, All rights reserved.


Step 5
Configuring the API...
On the next page we're going to head
straight to the HTTP request tab. Then add the headers:
Content-Type, x-synthetic-key, x-tenant-name

The first thing to do here is to set the


method to POST and enter the Execute
part of the URL endpoint.

© 2023 Coherent, All rights reserved.


Step 6
Setting up the Body...
Head over to Spark and get your API request inputs
JSON view and add it to the raw body.

Finally add in your input variables


using by overwriting the values with:
{{AnnualInterestRate}}

I got a data type warning when I linked it


to my operation input but it worked fine.

© 2023 Coherent, All rights reserved.


Step 7
Add your Operational inputs and test it...

The final part to mapping your request is to take


the inputs you labelled in your body and to add
them as Operation inputs; they need a Name, Key
and Value Type.

Now we're ready to fill in our Step inputs with some


sample data and the click the Test operation
button.

© 2023 Coherent, All rights reserved.


Step 8
Set your output and publish!

The last thing to do is to


hit the Publish button
and now you're ready to
use your Spark service in
your Tray.io workflows!
Once your test has run successfully you can press
the Use output button above the results to set the
output values for your service.

© 2023 Coherent, All rights reserved.


Build your workflow
Start connecting your applications to Spark!
Examples of Tray.io connectors:

Now you have a Spark


connector you can create
flows of data between
hundreds of different
applications and add in the
data processing from
the models you've created in
Excel!

© 2022 Coherent, All rights reserved.

You might also like