@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api ZEIT API
@base https://api.zeit.co
@version v2019-01-07
@auth Bearer bearer | OAuth2
@endpoints 5
@toc integrations(3), domains(2)

@group integrations
@endpoint GET /v1/integrations/webhooks
@optional {teamId: str}
@returns(200)

@endpoint POST /v1/integrations/webhooks
@required {name: str, url: str}
@optional {teamId: str}
@returns(201) {id: str, events: [str], url: str, name: str, configurationId: str, createdAt: int, ownerId: str}

@endpoint DELETE /v1/integrations/webhooks/:id
@optional {teamId: str}
@returns(204)

@endgroup

@group domains
@endpoint GET /v4/domains
@optional {teamId: str}
@returns(200) {domains: [map]}

@endpoint GET /v4/domains/{name}
@required {name: str}
@optional {teamId: str}
@returns(200) {domain: map{boughtAt: int?, cdnEnabled: bool, createdAt: int?, expiresAt: int?, id: str, intendedNameservers: [str], name: str, nameservers: [str], nsVerifiedAt: int?, orderedAt: int?, serviceType: str, transferredAt: int?, txtVerifiedAt: int?, verificationRecord: str, verified: bool, suffix: bool, aliases: [map], certs: [map], creator: map{customerId: str, email: str, id: str, username: str, isDomainReseller: bool}}}
@errors {404}

@endgroup

@end
