What you may do here
GET /v1/me
Your organization, and what its agreement allows you on this server: its tier, how far back and ahead a search may reach, how deep it may be paged, and when access ends. Not who you are: your name and email are in your login, and the API does not repeat them.
It is answered like every other operation. An account under review gets
no-organization. On api.reconnectchina.org, an organization with sandbox access only
gets tier-served-elsewhere, and asks the sandbox.
Responses
200 · Success
Your organization and its agreement.
organizationobjectThe organization your account belongs to.
namestringIts name, to show.
agreementobjectWhat your organization's agreement allows you on the server that answers. Bounds that the agreement sets and this object does not name still hold, and are named when a request meets them.
tierstring, up to 32 charactersYour organization's tier, the kind of agreement it has:
partner,partner-standard,associateorsandbox. It is a name we assign and keep: one never changes meaning, so branch on it, for example to show each tier in a way of your own. New tiers may appear; show one you do not know as it is.earliestFromstring, up to 128 charactersThe earliest
froma search may use here, as an instant expression such asnow-1yor1900-01-01, the same thatrange-not-entitlednames.latestTostring, up to 128 charactersThe latest
toa search may use here, as an instant expression such as3000-01-01.depthinteger, at least 1How many hits one search may page through here (see Paging). A search with more hits than this ends with a page that carries
"truncated": {"reason": "depth"}.untilstringmay be absentWhen your organization's access ends. Absent when the agreement sets no end. After it, every request is refused with
access-ended.
Errors
Every error is a problem document with the fields below. Its type names the problem, and is the address of the problem's page.
- 401
unauthenticated No access token, or one that is invalid or has expired (
unauthenticated). Refresh the access token and try again.- Header
WWW-AuthenticateBearer, as RFC 6750 on another website specifies.
- Header
- 403
no-organizationmultiple-organizationsorganization-not-registerednot-entitledaccess-endedtier-served-elsewheresuspended The account may not do this.
typesays why: the account belongs to no organization because its application is still under review (no-organization) or it belongs to more than one (multiple-organizations), the organization has no access to the API (organization-not-registered) or not to this operation (not-entitled), the organization's access has ended (access-ended), the organization's access is to another server of the API (tier-served-elsewhere, with that server's URL inserver), or access has been suspended (suspended, see Errors and retrying).- 429
rate-limited Too many requests, or too many at the same time (
rate-limited), from your account, your organization, or your network address. Wait forRetry-Afterseconds, then send the same request again.- Header
Retry-AfterHow many seconds to wait before sending the same request again.
- Header
- 431
headers-too-large The request's headers are too large (
headers-too-large). An access token is far below the limit, so look for a header your client adds.- 503
unavailable The API is temporarily unavailable (
unavailable), because our servers are under pressure or briefly out of service. Wait forRetry-Afterseconds, then send the same request again.- Header
Retry-AfterHow many seconds to wait before sending the same request again.
- Header
A problem document's fields
typestringIdentifies the problem; branch on this. One of the problem types under
https://api.reconnectchina.org/docs/v1/problems/, named in each response's description and itsx-problem-types, and listed in Problem types, for examplehttps://api.reconnectchina.org/docs/v1/problems/continuation-expired. The URL is also the type's documentation.titlestringA short, human-readable summary of the problem type.
statusintegerThe HTTP status code.
detailstringmay be absentA human-readable explanation of this occurrence.
errorslist of objectsmay be absentFor
invalid-request, each part of the request that is not valid, and forrange-not-entitled, each end of the range that reaches too far. Each names the part in exactly one way:pointerfor a part of the body,parameterfor a part of the path. A part with several mistakes in it, such as aterm, has an entry for each, andspansays where in it each one is.parameterstringmay be absentThe name of the path parameter, as this document names it, for example
namein/v1/saved_searches/{scope}/{name}.pointerstringmay be absentA JSON Pointer (RFC 6901 on another website) into the request body, for example
/levelIn/0. Empty for the body as a whole. For the run of a saved search, it points into the search as it ran, as if the body had been{"parameters": …}with the saved parameters and your overrides:/parameters/fromwhetherfromwas saved or sent.spanobjectmay be absentWhere in a string a problem is: the characters from
startup to, not including,end, counting from 0. Characters are Unicode code points, asmaxLengthcounts them, so低空经济is four; a program that marks text in another unit converts, such as a browser, whose strings count a character outside the Basic Multilingual Plane as two. Equalstartandendmark the place where something is missing, such as the end of a term that stops after&&.startinteger, at least 0endinteger, at least 0detailstringearliestFromstring, up to 128 charactersmay be absentFor
range-not-entitled, the earliestfromyour organization may use, as an instant expression such asnow-1yor1900-01-01.latestTostring, up to 128 charactersmay be absentFor
range-not-entitled, the latesttoyour organization may use, as an instant expression such as3000-01-01.serverstringmay be absentFor
tier-served-elsewhere, the server of this API that your account may use, one ofservers, such ashttps://sandbox.api.reconnectchina.org.