Go
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://api.sandbox.{id}.gr4vy.app/connections" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer <token>") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{ "items": [ { "id": "7b5e02bd-fa53-4ef0-b11e-1609d0f48cc5", "type": "connection", "name": "My Connection", "active": true, "definition": { "id": "stripe-card", "type": "connection-definition", "name": "Stripe", "count": 1, "group": "payment-service", "category": "card", "icon_url": "https://cdn.gr4vy.app/stripe.svg", "provider": "Stripe" } } ] }
Returns a list of all configured connections.
connections.read
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Returns a list of connections.
A list of configured connections.
Was this page helpful?