action contract_p_get_me { label: "Return info on the current user" description: "Return user info of the authenticated used making the call" provider: contract_p method: GET path: "/users/me" encoding: json input: { type: "object" properties: { "X-Fields": { type: "string" format: "mask" } } additionalProperties: false } output: { type: "object" required: ["active", "id", "roles", "username"] properties: { active: { type: "boolean" description: "Inactive users have to reset their password first" } confirmed_at: { type: "string" format: "date-time" } id: { type: "string" } roles: { type: "array" description: "the user roles" items: { type: "object" required: ["role"] properties: { document_id: { type: "string" description: "limited to a document" } inbox: { type: "string" } role: { type: "string" } } } } username: { type: "string" description: "the user username" } } } }