Get user info
GET/user/info
Returns user information.
Cost: 0 credit per call.
Request
Header Parameters
Possible values: [v1
]
The API version.
Responses
- 200
- 400
- 401
- 403
- 429
- 500
- 503
OK
- application/json
- Schema
- Example (from schema)
Schema
user objectrequired
A User
resource.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The user id
The user email.
plan object
The user subscription plan
The plan name.
The total of credits allowed for the current month.
The total of credits remaining for the current month.
The maximum of additional credits allowed for the current month.
The total of additional credits remaining for the current month.
The creation date of the user. It respect RFC3339 format, UTC date-time without timezone.
The last date when the user was updated. It respect RFC3339 format, UTC date-time without timezone.
status objectrequired
Number of credits that were consumed for this request.
apiDeprecationNotice object
Deprecation notice of the API.
A message that tells when the API version will be shut down.
The date of removal of the API version, UTC date-time without timezone using RFC3339 format.
{
"user": {
"id": "123e4567-e89b-12d3-a456-426655440000",
"email": "[email protected]",
"plan": {
"name": "string",
"totalMonthlyCredits": 0,
"remainingMonthlyCredits": 0,
"maxAdditionalCredits": 0,
"remainingAdditionalCredits": 0
},
"createdAt": "1977-04-22T07:00:00.000Z",
"updatedAt": "1977-04-22T07:00:00.000Z"
},
"status": {
"cost": 0,
"apiDeprecationNotice": {
"message": "The version 1 of the API is deprecated and will be shut down the 2022-02-02 at 00:00:00 UTC.",
"shutdownDate": "2022-02-02T00:00:00.000Z"
}
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The description of the error. It gives meaningful information about what happened.
Possible values: >= 100
and <= 600
The error code. Please use our documentation to get more information about it.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the user that made the request.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the request.
status objectrequired
Number of credits that were consumed for this request.
apiDeprecationNotice object
Deprecation notice of the API.
A message that tells when the API version will be shut down.
The date of removal of the API version, UTC date-time without timezone using RFC3339 format.
{
"error": {
"message": "An error occurred.",
"code": 0,
"userId": "123e4567-e89b-12d3-a456-426655440000",
"requestId": "123e4567-e89b-12d3-a456-426655440000"
},
"status": {
"cost": 0,
"apiDeprecationNotice": {
"message": "The version 1 of the API is deprecated and will be shut down the 2022-02-02 at 00:00:00 UTC.",
"shutdownDate": "2022-02-02T00:00:00.000Z"
}
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The description of the error. It gives meaningful information about what happened.
Possible values: >= 100
and <= 600
The error code. Please use our documentation to get more information about it.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the user that made the request.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the request.
status objectrequired
Number of credits that were consumed for this request.
apiDeprecationNotice object
Deprecation notice of the API.
A message that tells when the API version will be shut down.
The date of removal of the API version, UTC date-time without timezone using RFC3339 format.
{
"error": {
"message": "An error occurred.",
"code": 0,
"userId": "123e4567-e89b-12d3-a456-426655440000",
"requestId": "123e4567-e89b-12d3-a456-426655440000"
},
"status": {
"cost": 0,
"apiDeprecationNotice": {
"message": "The version 1 of the API is deprecated and will be shut down the 2022-02-02 at 00:00:00 UTC.",
"shutdownDate": "2022-02-02T00:00:00.000Z"
}
}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The description of the error. It gives meaningful information about what happened.
Possible values: >= 100
and <= 600
The error code. Please use our documentation to get more information about it.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the user that made the request.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the request.
status objectrequired
Number of credits that were consumed for this request.
apiDeprecationNotice object
Deprecation notice of the API.
A message that tells when the API version will be shut down.
The date of removal of the API version, UTC date-time without timezone using RFC3339 format.
{
"error": {
"message": "An error occurred.",
"code": 0,
"userId": "123e4567-e89b-12d3-a456-426655440000",
"requestId": "123e4567-e89b-12d3-a456-426655440000"
},
"status": {
"cost": 0,
"apiDeprecationNotice": {
"message": "The version 1 of the API is deprecated and will be shut down the 2022-02-02 at 00:00:00 UTC.",
"shutdownDate": "2022-02-02T00:00:00.000Z"
}
}
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The description of the error. It gives meaningful information about what happened.
Possible values: >= 100
and <= 600
The error code. Please use our documentation to get more information about it.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the user that made the request.
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the request.
status objectrequired
Number of credits that were consumed for this request.
apiDeprecationNotice object
Deprecation notice of the API.
A message that tells when the API version will be shut down.
The date of removal of the API version, UTC date-time without timezone using RFC3339 format.
{
"error": {
"message": "An error occurred.",
"code": 0,
"userId": "123e4567-e89b-12d3-a456-426655440000",
"requestId": "123e4567-e89b-12d3-a456-426655440000"
},
"status": {
"cost": 0,
"apiDeprecationNotice": {
"message": "The version 1 of the API is deprecated and will be shut down the 2022-02-02 at 00:00:00 UTC.",
"shutdownDate": "2022-02-02T00:00:00.000Z"
}
}
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
The id of the request.
{
"requestId": "123e4567-e89b-12d3-a456-426655440000"
}
Service Unavailable