POST fhir/v1/requesttoken

Request an access token to utilize AccessOne FHIR API resources.

Request Information

URI Parameters

None.

Body Parameters

ResourceOwnerModel
NameDescriptionTypeAdditional information
scope

Resource owner scope. Use "accessonefhirapi".

string

None.

username

Username provided by AccessOne

string

None.

password

Password provided by AccessOne

string

None.

Request Formats

application/json, text/json

Sample:
{
  "scope": "sample string 1",
  "username": "sample string 2",
  "password": "sample string 3"
}

application/xml, text/xml

Sample:
<IdSrvModel.ResourceOwnerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AccessOneWebAPI.FHIR.Models">
  <password>sample string 3</password>
  <scope>sample string 1</scope>
  <username>sample string 2</username>
</IdSrvModel.ResourceOwnerModel>

application/x-www-form-urlencoded

Sample:
scope=accessonefhirapi&username=[username]&password=[password]

Response Information

Resource Description

RequestTokenResponse
NameDescriptionTypeAdditional information
access_token

Token to use for subsequent requests to AccessOne Web API

string

None.

expires_in

Token expiration (seconds)

integer

None.

token_type

Token type

string

None.

Response Formats

application/json, text/json

Sample:
{
  "access_token": "sample string 1",
  "expires_in": 2,
  "token_type": "sample string 3"
}

application/xml, text/xml

Sample:
<RequestTokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AccessOneWebAPI.FHIR.Models.Documentation">
  <access_token>sample string 1</access_token>
  <expires_in>2</expires_in>
  <token_type>sample string 3</token_type>
</RequestTokenResponse>