{"openapi":"3.0.3","info":{"title":"DXPortable Members API","version":"1.0.0","description":"Read public, approved, active community members. Send Authorization: Bearer YOUR_TOKEN. Tokens are issued privately by the administrator, require members:read, expire, and can be revoked. 120 requests per minute per token, shared across endpoints; Retry-After indicates wait time after HTTP 429. Use HTTPS and keep credentials on your server. Times are Unix seconds in UTC. Email, phone, passwords and private profile fields are excluded."},"servers":[{"url":"https:\/\/api.dxportable.com","description":"Production"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Members","description":"Recommended versioned endpoints."},{"name":"Legacy migration","description":"Migration aliases. New Bearer authentication and pagination are required. Prefer \/v1 for new integrations."}],"paths":{"\/v1\/members":{"get":{"tags":["Members"],"operationId":"listMembers","summary":"List public members","parameters":[{"name":"page","in":"query","description":"Page number.","schema":{"type":"integer","minimum":1,"maximum":100000,"default":1}},{"name":"per_page","in":"query","description":"Members per page.","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"q","in":"query","description":"Callsign substring. Case insensitive input; letters, digits, slash and hyphen only.","schema":{"type":"string","maxLength":32}},{"name":"sort","in":"query","description":"Sort field. Ties are ordered by user ID. Premium expiry sorting uses the stored timestamp.","schema":{"type":"string","enum":["id","callsign","name","premium_expires_at","registered_at","certificate"],"default":"id"}},{"name":"order","in":"query","description":"Sort direction.","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}}],"responses":{"200":{"description":"Paginated members. The empty list is also 200.","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Member"}},"links":{"type":"object","properties":{"first":{"type":"string","nullable":true},"last":{"type":"string","nullable":true},"prev":{"type":"string","nullable":true},"next":{"type":"string","nullable":true}}},"meta":{"allOf":[{"type":"object","properties":{"current_page":{"type":"integer"},"last_page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"}}},{"type":"object","properties":{"from":{"type":"integer","nullable":true},"to":{"type":"integer","nullable":true},"path":{"type":"string"},"links":{"type":"array","items":{"type":"object"}}}}]}}}}}},"401":{"description":"Bearer token missing, invalid, expired or revoked.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"Token lacks members:read permission.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationError"}}}},"429":{"description":"Rate limit exceeded. Wait for Retry-After seconds.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"503":{"description":"Service temporarily unavailable. Retry later.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/v1\/members\/{callsign}":{"get":{"tags":["Members"],"operationId":"findMember","summary":"Find a member by callsign","description":"Input is trimmed and uppercased. URL-encode portable callsigns containing slash. Maximum 32 characters; letters, digits, slash and hyphen. The response callsign is uppercase.","parameters":[{"name":"callsign","in":"path","required":true,"schema":{"type":"string","maxLength":32,"example":"YC5YC"}}],"responses":{"200":{"description":"One public member.","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Member"}}}}}},"401":{"description":"Bearer token missing, invalid, expired or revoked.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"Token lacks members:read permission.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Member not found or not publicly available.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationError"}}}},"429":{"description":"Rate limit exceeded. Wait for Retry-After seconds.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"503":{"description":"Service temporarily unavailable. Retry later.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/get\/callsign":{"get":{"tags":["Legacy migration"],"operationId":"getLegacyCallsign","summary":"Legacy callsign lookup","description":"Requires the new Bearer token header. Body\/query token authentication is not supported. Success retains legacy field names, with current DXP-xxx member IDs. Errors use real HTTP status codes and a message field. POST accepts callsign in JSON; GET accepts callsign in query.","responses":{"200":{"description":"Legacy success envelope.","content":{"application\/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","example":200},"title":{"type":"string","example":"Success"},"message":{"type":"string","example":"Data retrieved successfully"},"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/LegacyMember"}}}}}}},"401":{"description":"Bearer token missing, invalid, expired or revoked.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"Token lacks members:read permission.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Member not found or not publicly available.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationError"}}}},"429":{"description":"Rate limit exceeded. Wait for Retry-After seconds.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"503":{"description":"Service temporarily unavailable. Retry later.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"parameters":[{"name":"callsign","in":"query","required":true,"schema":{"type":"string","example":"YOUR_CALLSIGN"}}]},"post":{"tags":["Legacy migration"],"operationId":"postLegacyCallsign","summary":"Legacy callsign lookup","description":"Requires the new Bearer token header. Body\/query token authentication is not supported. Success retains legacy field names, with current DXP-xxx member IDs. Errors use real HTTP status codes and a message field. POST accepts callsign in JSON; GET accepts callsign in query.","responses":{"200":{"description":"Legacy success envelope.","content":{"application\/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","example":200},"title":{"type":"string","example":"Success"},"message":{"type":"string","example":"Data retrieved successfully"},"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/LegacyMember"}}}}}}},"401":{"description":"Bearer token missing, invalid, expired or revoked.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"Token lacks members:read permission.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Member not found or not publicly available.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationError"}}}},"429":{"description":"Rate limit exceeded. Wait for Retry-After seconds.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"503":{"description":"Service temporarily unavailable. Retry later.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["callsign"],"properties":{"callsign":{"type":"string","example":"YOUR_CALLSIGN"}}}}}}}},"\/get\/all_user":{"get":{"tags":["Legacy migration"],"operationId":"getLegacyMembers","summary":"Legacy member list (paginated)","description":"Requires the new Bearer token header. Body\/query token authentication is not supported. Success retains legacy field names, with current DXP-xxx member IDs. Errors use real HTTP status codes and a message field. The full member list is no longer returned in one response: default 50 per page, maximum 100. Read meta and request subsequent pages. Legacy order ASC\/DESC is accepted.","responses":{"200":{"description":"Legacy success envelope.","content":{"application\/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","example":200},"title":{"type":"string","example":"Success"},"message":{"type":"string","example":"Data retrieved successfully"},"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/LegacyMember"}},"meta":{"type":"object","properties":{"current_page":{"type":"integer"},"last_page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"}}}}}}}},"401":{"description":"Bearer token missing, invalid, expired or revoked.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"Token lacks members:read permission.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationError"}}}},"429":{"description":"Rate limit exceeded. Wait for Retry-After seconds.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"503":{"description":"Service temporarily unavailable. Retry later.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100000,"default":1}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["id","callsign","name","premium_expires_at","registered_at","certificate"],"default":"id"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"],"default":"asc"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","enum":["id_user","callsign","nama","tgl_premium","tgl_create","sertifikat"],"default":"id_user"}}]},"post":{"tags":["Legacy migration"],"operationId":"postLegacyMembers","summary":"Legacy member list (paginated)","description":"Requires the new Bearer token header. Body\/query token authentication is not supported. Success retains legacy field names, with current DXP-xxx member IDs. Errors use real HTTP status codes and a message field. The full member list is no longer returned in one response: default 50 per page, maximum 100. Read meta and request subsequent pages. Legacy order ASC\/DESC is accepted.","responses":{"200":{"description":"Legacy success envelope.","content":{"application\/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","example":200},"title":{"type":"string","example":"Success"},"message":{"type":"string","example":"Data retrieved successfully"},"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/LegacyMember"}},"meta":{"type":"object","properties":{"current_page":{"type":"integer"},"last_page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"}}}}}}}},"401":{"description":"Bearer token missing, invalid, expired or revoked.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"Token lacks members:read permission.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationError"}}}},"429":{"description":"Rate limit exceeded. Wait for Retry-After seconds.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"503":{"description":"Service temporarily unavailable. Retry later.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":false,"content":{"application\/json":{"schema":{"type":"object","properties":{"page":{"type":"integer","minimum":1,"maximum":100000,"default":1},"per_page":{"type":"integer","minimum":1,"maximum":100,"default":50},"q":{"type":"string","maxLength":32},"sort":{"type":"string","enum":["id","callsign","name","premium_expires_at","registered_at","certificate"],"default":"id"},"order":{"type":"string","enum":["asc","desc"],"default":"asc"},"sort_by":{"type":"string","enum":["id_user","callsign","nama","tgl_premium","tgl_create","sertifikat"],"default":"id_user"}}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Sanctum personal access token","description":"Paste your privately issued token only (without the Bearer prefix). No valid tokens are published here."}},"schemas":{"Member":{"type":"object","additionalProperties":false,"required":["id","callsign","name","member_id","is_premium","membership_type","premium_expires_at","registered_at"],"properties":{"id":{"type":"integer","format":"int64","example":42},"callsign":{"type":"string","example":"YOUR_CALLSIGN"},"name":{"type":"string","example":"Example Member"},"member_id":{"type":"string","example":"DXP-042","description":"Portal membership identifier. Active premium members use their positive certificate number; otherwise the user ID. Minimum three digits."},"is_premium":{"type":"boolean","example":false},"membership_type":{"type":"string","enum":["regular","premium","lifetime"]},"premium_expires_at":{"type":"integer","format":"int64","nullable":true,"example":null,"description":"Unix seconds UTC; null for regular or lifetime members."},"registered_at":{"type":"integer","format":"int64","example":1704067200}}},"LegacyMember":{"type":"object","properties":{"id_user":{"type":"integer"},"callsign":{"type":"string"},"nama":{"type":"string"},"tgl_premium":{"type":"integer","format":"int64"},"tgl_create":{"type":"integer","format":"int64"},"member_id":{"type":"string","example":"DXP-042"},"is_premium":{"type":"boolean"}}},"Error":{"type":"object","required":["message"],"properties":{"message":{"type":"string","example":"Unauthenticated."}}},"ValidationError":{"type":"object","properties":{"message":{"type":"string"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}}}}}