{"id":12621,"date":"2024-06-25T13:59:56","date_gmt":"2024-06-25T10:59:56","guid":{"rendered":"https:\/\/availo.app\/?post_type=documents&p=12621"},"modified":"2024-06-25T13:59:59","modified_gmt":"2024-06-25T10:59:59","slug":"generate-token","status":"publish","type":"documents","link":"https:\/\/availo.app\/en\/documents\/%d9%85%d8%b3%d8%aa%d9%86%d8%af%d8%a7%d8%aa-api\/generate-token\/","title":{"rendered":"Generate Token"},"content":{"rendered":"\n

<\/p>\n\n\n\n

Link: <\/strong>{Base_Url}\/api\/Account\/Generatetoken<\/a><\/p>\n\n\n\n

Method Type: <\/strong>POST<\/p>\n\n\n\n

Content Type: <\/strong>Application\/Json<\/p>\n\n\n\n

Description<\/strong>: <\/strong>Returns an access token to use as a header key of other APIs if used the OAuth2 authentication. (This code will activate for 15 minutes only)<\/p>\n\n\n\n

<\/p>\n\n\n\n

Request object:<\/em><\/strong><\/p>\n\n\n\n

Field<\/td>Required<\/td>Type<\/td>Description<\/td><\/tr>

AccountCode<\/td>

Yes<\/td>

string<\/td>
The code Id of your account<\/td><\/tr>

Password<\/td>


Yes<\/td>

string<\/td>
The password that got it from the Availo team<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

<\/p>\n\n\n\n

Sample Request:<\/strong>
\"Graphical<\/p>\n\n\n\n

<\/p>\n\n\n\n

Response object:<\/strong><\/p>\n\n\n\n

Field<\/td>Required<\/td>type<\/td>Description<\/td><\/tr>

Data.accessToken<\/td>

Yes<\/td>

string<\/td>

The access token that needs to use as a header key of the otherAPIs<\/td><\/tr>

status<\/td>

Yes<\/td>

bool<\/td>

If the request is a success or not<\/td><\/tr>

message<\/td>

No<\/td>

string<\/td>

The error message that returns from the request<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

<\/p>\n\n\n\n

Sample Response:<\/strong>
\"Graphical<\/p>\n","protected":false},"excerpt":{"rendered":"

Link: {Base_Url}\/api\/Account\/Generatetoken Method Type: POST Content Type: Application\/Json Description: Returns an access token to use as a header key of other APIs if used the OAuth2 authentication. (This code will activate for 15 minutes only) Request object: Field Required Type Description AccountCode Yes string The code Id of your account Password Yes string The password […]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":12458,"menu_order":0,"template":"","aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/availo.app\/en\/wp-json\/wp\/v2\/documents\/12621"}],"collection":[{"href":"https:\/\/availo.app\/en\/wp-json\/wp\/v2\/documents"}],"about":[{"href":"https:\/\/availo.app\/en\/wp-json\/wp\/v2\/types\/documents"}],"author":[{"embeddable":true,"href":"https:\/\/availo.app\/en\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":0,"href":"https:\/\/availo.app\/en\/wp-json\/wp\/v2\/documents\/12621\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/availo.app\/en\/wp-json\/wp\/v2\/documents\/12458"}],"wp:attachment":[{"href":"https:\/\/availo.app\/en\/wp-json\/wp\/v2\/media?parent=12621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}