Connect
Getting Connect Results
Copy
Ask AI
curl https://production.methodfi.com/elements/token/pk_elem_dDe4r9M6X3Ad9zjpbgYpzLNtRCXfhPYR/results \
-X GET \
-H "Method-Version: 2024-04-04" \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc"
Copy
Ask AI
{
"authenticated": true,
"cxn_id": "cxn_xr86xHEcWmpmB",
"accounts": [
"acc_jPXLFqd6KzH3N",
"acc_DALLeLrj3TH8h"
],
"entity_id": "ent_GWKYtnFyE79db",
"events": [
{
"type": "open",
"metadata": {
"element_type": "connect",
"op": "open"
},
"timestamp": "2024-04-25T02:35:28.097Z"
},
{
"type": "success",
"metadata": {
"entity_id": "ent_GWKYtnFyE79db",
"accounts": [
"acc_jPXLFqd6KzH3N",
"acc_DALLeLrj3TH8h"
],
"element_type": "connect",
"op": "success"
},
"timestamp": "2024-04-25T02:35:57.120Z"
},
{
"type": "exit",
"metadata": {
"element_type": "connect",
"op": "exit"
},
"timestamp": "2024-04-25T02:35:57.138Z"
}
]
}
In addition to listening for the success event, the result of the Connect session can also be retrieved by calling the results
endpoint with the element token for that session.
Copy
Ask AI
GET /elements/token/{element_token}/results
See Retrieve Element Results for more information about this endpoint.
Copy
Ask AI
curl https://production.methodfi.com/elements/token/pk_elem_dDe4r9M6X3Ad9zjpbgYpzLNtRCXfhPYR/results \
-X GET \
-H "Method-Version: 2024-04-04" \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc"
Copy
Ask AI
{
"authenticated": true,
"cxn_id": "cxn_xr86xHEcWmpmB",
"accounts": [
"acc_jPXLFqd6KzH3N",
"acc_DALLeLrj3TH8h"
],
"entity_id": "ent_GWKYtnFyE79db",
"events": [
{
"type": "open",
"metadata": {
"element_type": "connect",
"op": "open"
},
"timestamp": "2024-04-25T02:35:28.097Z"
},
{
"type": "success",
"metadata": {
"entity_id": "ent_GWKYtnFyE79db",
"accounts": [
"acc_jPXLFqd6KzH3N",
"acc_DALLeLrj3TH8h"
],
"element_type": "connect",
"op": "success"
},
"timestamp": "2024-04-25T02:35:57.120Z"
},
{
"type": "exit",
"metadata": {
"element_type": "connect",
"op": "exit"
},
"timestamp": "2024-04-25T02:35:57.138Z"
}
]
}
Copy
Ask AI
curl https://production.methodfi.com/elements/token/pk_elem_dDe4r9M6X3Ad9zjpbgYpzLNtRCXfhPYR/results \
-X GET \
-H "Method-Version: 2024-04-04" \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc"
Copy
Ask AI
{
"authenticated": true,
"cxn_id": "cxn_xr86xHEcWmpmB",
"accounts": [
"acc_jPXLFqd6KzH3N",
"acc_DALLeLrj3TH8h"
],
"entity_id": "ent_GWKYtnFyE79db",
"events": [
{
"type": "open",
"metadata": {
"element_type": "connect",
"op": "open"
},
"timestamp": "2024-04-25T02:35:28.097Z"
},
{
"type": "success",
"metadata": {
"entity_id": "ent_GWKYtnFyE79db",
"accounts": [
"acc_jPXLFqd6KzH3N",
"acc_DALLeLrj3TH8h"
],
"element_type": "connect",
"op": "success"
},
"timestamp": "2024-04-25T02:35:57.120Z"
},
{
"type": "exit",
"metadata": {
"element_type": "connect",
"op": "exit"
},
"timestamp": "2024-04-25T02:35:57.138Z"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.