+1 (888) 674-2299

28,323,738 Royalty Free Stock Photos

How to use the Fotolia API

Method: user/loginUser

This method allows you to create an authenticated session to be able to use methods which need authentication

Authentication

This method does requires authentification using login/password. This method is not available for Partner API. Business API can only authenticate under their own fotolia account. Developer API can authenticate under any fotolia account.

HTTP method

This method is called with HTTP method POST.

Arguments

Argument Type Element (array) Valid Values Default Value Detail
login string existing login required User Login
pass string password corresponding to login required User Password

Returned Values

Element (path) Name Type Description
/ session_id string authenticated session id (needed for methods needed authentication)

Example Query

POST http://API_KEY@api.fotolia.com/Rest/1/user/loginUser

login=LOGIN&pass=PASSWORD

Example Response

{
	"session_id":"SESSION_ID"
}

Error Codes

001: Service currently unavailable
The requested service is temporarily unavailable.
002: Failed to parse request
The request could not be parsed.
010: Missing API Key
The API key passed is missing.
011: Invalid API Key
The API key passed is not valid or has expired.
031: Invalid Method
This method does not exist in the method list.
032: Method not Available
This method is not available for this API Key.
4000: Login Failed
login and password does not match or member not found.
4001: Invalid User
This user has no permission to login / User has been deleted.
4002: Bad Login or Password
The login or password sent is not correct (i.e. : too long, too short, bad caracters ...).