API Endpoint | https://identity.rpsprod.ch |
Protocol | HTTPS |
Port | 443 |
Authentication | True |
Identity API#
Token#
post https://identity.rpsprod.ch/connect/token
Description#
Generates a access_token
for a given transformation's configuration.
Request header#
No parameters are needed in the request header.
Request body#
Request body's parameter | Type | Description | Required |
---|---|---|---|
client_id | string | the API key generated when enabling the transformation's configuration in the TRANSFORM>TARGETS>CONFIGURATIONS page of
RPS CoreConfiguration. | |
client_secret | string | the secret key generated when enabling the transformation's configuration in the TRANSFORM>TARGETS>CONFIGURATIONS page of
RPS CoreConfiguration. | |
grant_type | string | fixed value. Set value must be equal to: client_credentials |
Response#
{
"access_token": "[string]",
"expires_in": "[integer]",
"token_type": "Bearer",
"scope": "rps_engine_api"
}
Response parameter | Type | Description | Required |
---|---|---|---|
access_token | string | the token to be used in order to authenticate requests to Transform API. | |
expires_in | integer | the expiration time in seconds of the token |
Example of request#
cURL:#
curl --location --request POST 'https://identity.rpsprod.ch/connect/token' \
--header 'Content-Type: multipart/form-data; boundary=--------------------------338686638831412073542816' \
--form 'client_id=b6aff204-0eb1-4055-8f81-3eaadasd744c' \
--form 'client_secret=83f75d2c213e4f6190abdsd33202439c31f7151f487cb778bdb4db303ab7'\
--form 'grant_type=client_credentials'
HTTP:#
POST /connect/token HTTP/1.1
Host: https://identity.rpsprod.ch
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name='client_id'
b6aff204-0eb1-4055-8f81-3eaadasd744c
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name='client_secret'
83f75d2c213e4f6190abdsd33202439c31f7151f487cb778bdb4db303ab7
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name='grant_type'
client_credentials
----WebKitFormBoundary7MA4YWxkTrZu0gW
Example of response#
{
"access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjExQjdFM0Y4Q0FGQzQ3M0Q5NjgxMzdCQjkxNDZERkM1NDBDREZCRjciLCJ0eXAiOiJhiGh6r3G_SO_AqXwl9mc80ke0NWpQ9M9Go_H8uNw7xA_0XXf6",
"expires_in": 300,
"token_type": "Bearer",
"scope": "rps_engine_api"
}