Skip to content

Commit fcd33be

Browse files
authored
Add Get token API
1 parent cd003ab commit fcd33be

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

api-references/data/account-aggregator.json

+80
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,54 @@
3434
}
3535
],
3636
"paths": {
37+
"/users/login": {
38+
"servers": [
39+
{
40+
"url": "https://orgservice-prod.setu.co/v1"
41+
}
42+
],
43+
"post": {
44+
"parameters": [
45+
{
46+
"in": "header",
47+
"name": "client",
48+
"required": true,
49+
"description": "",
50+
"schema": {
51+
"type": "string",
52+
"enum": ["bridge"]
53+
}
54+
}
55+
],
56+
"responses": {
57+
"200": {
58+
"description": "OK",
59+
"content": {
60+
"application/json": {
61+
"schema": {
62+
"$ref": "#/components/schemas/TokenAPIResponse"
63+
}
64+
}
65+
}
66+
},
67+
"400": {
68+
"$ref": "#/components/responses/BAD_REQUEST"
69+
}
70+
},
71+
"requestBody": {
72+
"required": true,
73+
"content": {
74+
"application/json": {
75+
"schema": {
76+
"$ref": "#/components/schemas/TokenAPIRequest"
77+
}
78+
}
79+
}
80+
},
81+
"summary": "Get Token",
82+
"operationId": "getToken"
83+
}
84+
},
3785
"/v2/fips": {
3886
"get": {
3987
"responses": {
@@ -553,6 +601,38 @@
553601
},
554602
"components": {
555603
"schemas": {
604+
"TokenAPIResponse": {
605+
"type": "object",
606+
"properties": {
607+
"access_token": {
608+
"type": "string",
609+
"description": "Bearer token"
610+
},
611+
"refresh_token": {
612+
"type": "string",
613+
"description": "Bearer token"
614+
}
615+
},
616+
"required": ["access_token"]
617+
},
618+
"TokenAPIRequest": {
619+
"type": "object",
620+
"properties": {
621+
"clientID": {
622+
"type": "string",
623+
"description": "client_id obtained from bridge"
624+
},
625+
"grant_type": {
626+
"type": "string",
627+
"enum": ["client_credentials"]
628+
},
629+
"secret": {
630+
"type": "string",
631+
"description": "client secret obtained from bridge"
632+
}
633+
},
634+
"required": ["clientID", "grant_type", "secret"]
635+
},
556636
"FIDataFetchResponseV2": {
557637
"type": "object",
558638
"properties": {

0 commit comments

Comments
 (0)