Skip to main content
Version: 8.1

AuthService.svc web service

Level: intermediate
// Request string.
POST Creatio_application_address/ServiceModel/AuthService.svc/Login

// Request headers.
Content-Type: application/json; charset=utf-8
ForceUseSession: true

// Request body.
{
"UserName":"User name",
"UserPassword":"User password"
}

Request string

method

Authentication service supports POST HTTP method. Required.

Creatio_application_address

Creatio application address. Required.

ServiceModel/AuthService.svc/Login

To perform authentication, call the Login AuthService.svc method. Required.

Request headers

Content-Type application/json

Encoding and resource type passed in the request body. Required.

ForceUseSession true

The ForceUseSession header accounts for using the existing session. Required.

Request body

The request body must pass the Creatio user credentials. The credentials are passed as a JSON object.

UserName string

The user name of a Creatio user. Required.

UserPassword string

The password of a Creatio user. Required.

HTTP status code

code

HTTP status code.

Status codes

200 OK

The request has been completed successfully and the resource value is not equal to zero. In this case, the request body should contain the authentication status code. If it contains 0, the authentication is successful. In case of unsuccessful authentication, the authentication status code will equal 1 and the request body will contain a message about the cause of the unsuccessful authentication.

403 Forbidden

The server cannot provide access to the resource specified in the request (for example, if a method name is spelled incorrectly). Request body can contain additional information.

Response headers

The response to a POST request contains authentication cookies. You need to save these cookies on the side of the client or on the client computer to use them in your further Creatio web service queries.

Response body

Code

If the code contains a "0" value, the authentication is successful. Otherwise, it is failed. Required.

Message

The message notifying of an unsuccessful authentication. Required.

Exception

The object that contains a detailed description of the exception connected with the unsuccessful authentication. Required.